home *** CD-ROM | disk | FTP | other *** search
/ ToolBook 3.0 / ToolBook v3.0.iso / tb30 / samples / dialog.tbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1994-05-19  |  186.9 KB  |  3,806 lines

  1. s_CurrentCursor
  2. This editor requires the authoring version of ToolBook.
  3. s_dialogWindow
  4. ToolBar
  5. oinitDLLs
  6. initEditor
  7. Dialog
  8. newDialog
  9. enterApplication
  10. group
  11. group
  12. s_Browse
  13. command
  14. s_Browse
  15. rightbuttonDown
  16. -$,    7
  17. s_dialogWindow
  18. , 0,0,0,bold
  19. FChooseFontDlg
  20. newFont
  21. oldSelection
  22. forceExists,noGDI,noVector,screen
  23. s_DialogTemplate
  24. character
  25. reader
  26. dialog.hlp
  27. dlg_WinHelp
  28. contents
  29. contents
  30. +    ,    /
  31. -$,    7
  32. +    ,    /
  33. objList
  34. button
  35. group
  36. s_dlgBaseUnits
  37. rs_dlgBaseUnits
  38. ToolPalette
  39. ToolBar
  40. MS Sans Serif
  41. dlg_disable
  42. s_DialogTemplate
  43. resName
  44. initEditor
  45. CreateFontIndirect
  46. dlg_CreateFontIndirect
  47. SelectObject
  48. dlg_SelectObject
  49. ,#TIVo
  50. getTextExtent
  51. dlg_getTextExtent
  52. DeleteObject
  53. dlg_DeleteObject
  54. ,#TeOo
  55. tb30dlg.dll
  56. dialog
  57. getValue
  58. SetValue
  59. dialogCallback
  60. OpenFileDlg
  61. SaveAsDlg
  62. chooseFontDlg
  63. setBitmapData
  64. setIconData
  65. enableControl
  66. setControlText
  67. getControlText
  68. kernel
  69. GlobalHandle
  70. dlg_GlobalHandle
  71. GlobalAlloc
  72. dlg_GlobalAlloc
  73. GlobalLock
  74. dlg_GlobalLock
  75. GlobalUnlock
  76. dlg_GlobalUnlock
  77. GlobalFree
  78. dlg_GlobalFree
  79. getDC
  80. dlg_getDC
  81. ReleaseDC
  82. dlg_ReleaseDC
  83. DestroyIcon
  84. dlg_DestroyIcon
  85. SendMessage
  86. dlg_SendMessage
  87. WinHelp
  88. dlg_WinHelp
  89. initDLLs
  90. s_dialogWindow
  91. s_Dirty
  92. Save current changes?
  93. saveDialog
  94. checkSave
  95. s_dialogWindow
  96. initViewer
  97. s_Browse
  98. Toolbar
  99. browse
  100. +*+U!8
  101. s_dialogWindow
  102. clearDialog
  103. checkSave
  104. newDialog
  105. +    ,    #>
  106. +    ,    #
  107. +    ,    #
  108. ,%H.%
  109. +    ,    #?
  110. +    ,    #>
  111. +    ,    #>
  112. +    ,    #?
  113. +    ,    !
  114. +    ,    !
  115. +    ,    !
  116. +    ,    #>
  117. +*+U!8
  118. propList
  119. s_dialogWindow
  120. kgetValue
  121. No dialog templates were found in Book
  122. s_CurrentCursor
  123. initialValues
  124. currProp
  125. s_currentFile
  126. Dialog template (*.DIA),*.DIA,ToolBook Book (*.TBK),*.TBK,SysBook (*.SBK),*.SBK
  127. showDialog
  128. of book
  129. vsetValue
  130. newCaption
  131. buildFrame
  132. checkClear
  133. File is empty.
  134. OpenFileDlg
  135. LoadTemplateBOX
  136. ToolBar
  137. propList
  138. s_dialogWindow
  139. s_CurrentCursor
  140. initialValues
  141. currProp
  142. s_currentFile
  143. newCaption
  144. dialogTemplate
  145. retVal
  146. initProp
  147. templateName
  148. tempList
  149. dialogTemplate
  150. dialogName
  151. listbox templates
  152. LoadTemplateInit
  153. checkSave
  154. initProp
  155. buildItems
  156. targetBook
  157. ToolBook Dialog Editor - 
  158. dialog
  159. OpenDialog
  160. s_currentFile
  161. -SaveDIA
  162. saveAsDlg
  163. Dialog Template (*.DIA), *.DIA
  164. saveDialog
  165. Save as
  166. s_currentFile
  167. -SaveDIA
  168. saveAsDlg
  169. Dialog Template (*.DIA), *.DIA
  170. saveDialogAs
  171. +    ,    !
  172. +    ,    !;
  173. +    ,    !;
  174. +    ,    !;
  175. +    ,    !
  176. +    ,    #>
  177. ToolBook Dialog Editor - 
  178. s_dialogWindow
  179. s_CurrentCursor
  180. s_currentFile
  181. buildDialogItems
  182. buildDialogHeader
  183. ToolBar
  184. s_InitialValues
  185. s_DialogTemplate
  186. SaveDIA
  187. .&,    #>
  188. .&,    #>
  189. w,    #>
  190. +    ,    /
  191. +    ,    /
  192. +    ,    /
  193. +    ,    /
  194. +    ,    /
  195. +    ,    /
  196. +    ,    /
  197. +    ,    /
  198. +    ,    /
  199. +    ,    /
  200. +    ,    /
  201. +    ,    /
  202. +    ,    /
  203. +    ,    /
  204. +    ,    /
  205. +    ,    /
  206. +    ,    /
  207. +    ,    /
  208. +    ,    /
  209. +    ,    /
  210. +    ,    /
  211. +    ,    /
  212. +    ,    /
  213. +    ,    /
  214. +    ,    /
  215. +    ,    /
  216. +    ,    /
  217. +    ,    /
  218. +    ,    /
  219. +    ,    /
  220. +    ,    /
  221. +*+    t
  222. |pushbuttonPropertiesInit
  223. kgetValue
  224. STATIC
  225. s_CurrentCursor
  226. button Password
  227. Bitmap Control Place Holder
  228. button true
  229. ID_OK
  230. newBMP
  231. CustomPropertiesInit
  232. .?newIcon
  233. edit Name
  234. Y%controlProperties
  235. button radio
  236. iedit ypos
  237. dialogName
  238. ID_CANCEL
  239. BitmapPropertiesInit
  240. BUTTON
  241. button scroll
  242. dialog
  243. CustomPropertiesBOX
  244. iedit xpos
  245. BITMAP
  246. oPpushbuttonPropertiesBox
  247. reader
  248. targetBook
  249. Z%controlProperties
  250. checkbox
  251. ButtonIDs
  252. comboboxPropertiesBOX
  253. button TRUE
  254. edit Caption
  255. button checkbox
  256. &ID_OK
  257. static ID
  258. bitmap
  259. vAdialogCallback
  260. iedit layer
  261. staticPropertiesInit
  262. groupboxPropertiesInit
  263. checkRadioPropertiesBox
  264. bitmap current Bitmap
  265. button default
  266. listboxPropertiesBOX
  267. FALSE
  268. Button Password
  269. rectangle
  270. comboboxPropertiesInit
  271. edit caption
  272. CUSTOM
  273. center
  274. iconPropertiesBOX
  275. button discard
  276. LISTBOX
  277. edit name
  278. GROUPBOX
  279. addButtonID
  280. edit text
  281. edit items
  282. /?newIcon
  283. button single
  284. newBmp
  285. vsetValue
  286. button sort
  287. iedit dropDownLength
  288. edit className
  289. button accept
  290. s_dialogWindow
  291. fdialogPropertiesBOX
  292. removeButtonID
  293. Group
  294. 9checkRadioPropertiesInit
  295. EDIT Name
  296. groupBoxPropertiesBOX
  297. icon current icon
  298. COMBOBOX
  299. right
  300. button editable
  301. [EiconPropertiesInit
  302. retValue
  303. controlProperties
  304. WordWrap
  305. dialogPropertiesInit
  306. button false
  307. editPropertiesBOX
  308. combobox controlID
  309. &ID_CANCEL
  310. newBmp
  311. listboxPropertiesInit
  312. oldID
  313. edit resourceName
  314. qBitmapPropertiesBOX
  315. pushbutton
  316. edit Items
  317. dialogName
  318. iedit style
  319. &CeditPropertiesInit
  320. iedit Layer
  321. ctrlID
  322. o{staticPropertiesBOX
  323. Properties
  324. ,%H.%
  325. buttonIDs
  326. buttonIDs
  327. removeButtonID
  328. ,%H.%
  329. FALSE
  330. buttonIDs
  331. buttonIDs
  332. addButtonID
  333. s_dialogWindow
  334. 4controlState
  335. FALSE
  336. ToolBar
  337. YWMkeyUp
  338. WMkeyUp
  339. ,!J("
  340. 4controlState
  341. s_dialogWindow
  342. WMkeyDown
  343. ToolBar
  344. yDlgUnitsToPageUnits
  345. dlg_sendMessage
  346. WMkeyDown
  347. w,    #>
  348. w,    #?
  349. targetBook
  350. dialogName
  351. s_dialogWindow
  352. s_CurrentCursor
  353. s_DialogTemplate
  354. FALSE
  355. cmdString
  356. templateScript
  357. scriptMessage
  358. bFound
  359. setScript
  360. currentIcon
  361. resList
  362. s_InitialValues
  363. dialogName
  364. as userProperties of the book
  365. BOX of book targetBook of self to s_DialogTemplate;
  366. ToolBook (*.TBK), *.TBK, SysBook (*.SBK), *.SBK
  367. handler.  The handler has been placed on the clipboard
  368. FALSE
  369. has been added to the book script of that book.  To display the dialog,
  370. dialogName
  371. s_dialogWindow
  372. bFound
  373. message
  374. information
  375. *.tbk
  376. buildDialogItems
  377.  and a handler for the message show
  378. You must give the dialog a name.  Please specify a name below.
  379. verifyDialogName
  380. ;0normalScript
  381. buildDialogHeader
  382. targetBook
  383. openFileDlg
  384. Choose target book for Dialog Template...
  385. The specified file is not a book.
  386. icon id 114
  387. currentIcon
  388. INIT of book targetBook of self to s_InitialValues
  389. dialogName
  390. to append the
  391. send the show
  392. .  There is not enough room in the book script of book
  393. s_InitialValues
  394. s_CurrentCursor
  395. The dialog template and initialization values have been placed in book
  396. resList
  397. _DLGNAME_
  398. build
  399. 1,    #>
  400. ,%H.%
  401. w,    #>
  402. w,    #>
  403. w,    #?
  404. w,    #?
  405. w,    #?
  406. Enter new name for dialog.
  407. continue
  408. dialogName
  409. isViewer
  410. retValue
  411. FALSE
  412. template
  413. isTemplate
  414. of book
  415. viewer
  416. FALSE,FALSE
  417. Unable to make handler name and userProperties from dialog name.  
  418. FALSE
  419. There is already a viewer with this name in book
  420. !@#$%^&*()-,./?><;':[]{}\|=+`~
  421. There is already a dialog template with this name in book
  422. targetbook
  423.   If you continue the existing dialog template will be overwritten 
  424. &Rename
  425. verifyDialogName
  426. The Dialog name must begin with a letter.
  427. There is already a viewer and a dialog template with this name in book
  428. targetBook
  429. rename
  430.   If you continue the viewer will be added 
  431.   If you continue the template will be added 
  432. &Abort
  433.  <> null
  434. but no script will be placed in the book.
  435. BOX of book
  436. 1234567890
  437. dialogName
  438. a SPACE or a TAB
  439. TRUE,TRUE
  440.   If you continue the existing viewer will be deleted and a new one 
  441. &Continue
  442. created 
  443. ' character is not valid in handler or property names.  The Dialog name cannot contain any of the following characters:
  444. The '
  445. verifyDialogName
  446. w,    #>
  447. +    ,    /
  448. +    ,    /
  449. +    ,    /
  450. w,    #>
  451. targetBook
  452. dialogName
  453. PUSHBUTTON
  454. Z%controlProperties
  455. ToolBook (*.TBK), *.TBK, SysBook (*.SBK), *.SBK
  456. handler.  The handler has been placed on the clipboard
  457. objList
  458. s_CurrentCursor
  459. has been added to the book script of that book.  To display the dialog,
  460. dialogName
  461. Y%controlProperties
  462. s_dialogWindow
  463. message
  464. newDlgViewer
  465. Group
  466. *.tbk
  467.  and a handler for the message show
  468. controlProperties
  469. You must give the dialog a name.  Please specify a name below.
  470. verifyDialogName
  471. FALSE
  472. integerOnlyScript
  473. targetBook
  474. openFileDlg
  475. has been created in book
  476. dialog
  477. 8ViewerScript
  478. The specified file is not a book.
  479. newDlgPage
  480. trueAcceptScript
  481. The dialog Viewer
  482. dialogName
  483. to append the
  484. send the show
  485. .  There is not enough room in the book script of book
  486. falseCancelScript
  487. Choose target book for Dialog Viewer...
  488. center
  489. currentObject
  490. _DLGNAME_
  491. buildViewer
  492. aboutinit
  493. UraboutBOX
  494. vAdialogCallback
  495. aboutdialog
  496. dialogHelp
  497. +*+Dr
  498. s_dialogWindow
  499. s_CurrentCursor
  500. buildDialogItems
  501. buildDialogHeader
  502. ToolBar
  503. Preview3D
  504. s_InitialValues
  505. s_DialogTemplate
  506. dialog
  507. ShowDialog
  508. +*+Dr
  509. Cancel
  510. s_dialogWindow
  511. &Cancel
  512. s_CurrentCursor
  513. Do you want to clear the existing dialog?
  514. clearDialog
  515. checkClear
  516. +*+Dr
  517. ToolBook Dialog Editor - <Untitled>
  518. s_dialogWindow
  519. ID_OK
  520. s_dirty
  521. showDialog
  522. ToolBar
  523. targetBook
  524. addButtonID
  525. Dialog
  526. buttonIDs
  527. dialogName
  528. ID_CANCEL
  529. clearDialog
  530. vdlg_GlobalAlloc
  531. Memory Allocation failed.  Operation Aborted.
  532. Pdlg_GlobalLock
  533. getWinPointer
  534. dlg_GlobalUnLock
  535. dlg_GlobalHandle
  536. dKdlg_GlobalFree
  537. Memory error occured.  Operation Aborted.
  538. freeWinPointer
  539. +    ,    /
  540. +    ,    /
  541. baseUnits
  542. baseUnits
  543. s_DialogTemplate
  544. dlgUnitsToPixels
  545. +    ,    /
  546. +    ,    /
  547. baseUnits
  548. baseUnits
  549. s_DialogTemplate
  550. dlgUnitsToPageUnits
  551. +    ,    /
  552. +    ,    /
  553. baseUnits
  554. baseUnits
  555. s_DialogTemplate
  556. PixelsToDlgUnits
  557. +    ,    /
  558. +    ,    /
  559. baseUnits
  560. baseUnits
  561. s_DialogTemplate
  562. pageUnitsToDlgUnits
  563. +    ,    /
  564. +    ,    /
  565. +    ,    /
  566. +    ,    /
  567. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  568. freeWinPointer
  569. $bgetWinPointer
  570. dlg_ReleaseDC
  571. s_dlgBaseUnits
  572. tdlg_getDC
  573. dlg_getTextExtent
  574. dlg_DeleteObject
  575. dlg_CreateFontIndirect
  576. dlg_SelectObject
  577. baseUnits
  578. edit resourceName
  579. getControlText
  580. AenableControl
  581. TBKDialogInit
  582. targetBook
  583. ToolBook (*.TBK), *.TBK, SysBook (*.SBK), *.SBK
  584. ICON current icon
  585. setControlText
  586. setIconData
  587. dlg_DeleteObject
  588. Bitmap
  589. *.tbk
  590. dlg_DestroyIcon
  591. targetBook
  592. openFileDlg
  593. edit resourceName
  594. You must name the selected resource.
  595. .?newIcon
  596. >setBitmapData
  597. BITMAP Current Bitmap
  598. getControlText
  599. Button Choose Icon
  600. /?newIcon
  601. AenableControl
  602. newBmp
  603. newBmp
  604. Button Choose Bitmap
  605. Choose target book for Resource...
  606. TBKDialogCommand
  607. false,false,false,false,false,false,true
  608. oldState
  609. ToolPalette
  610. button
  611. ToolPalette
  612. selectedTool
  613. buttonClick
  614. select
  615. ToolPalette
  616. enterPage
  617. --This handler sets the selected 
  618. ToolPalette 
  619. Bthat
  620. --was clicked on
  621. buttonClick
  622. selectedTool 
  623. initializes 
  624. 35,48
  625. selectChars
  626. ToolPalette
  627. Button id 37 of Page id 1
  628. buttonPressed
  629. groupbox
  630. recTool
  631. Button id 37 of Page id 1
  632. invertedButton
  633. Button id 40 of Page id 1
  634. oldInvertedButton
  635. custom
  636. ctrlID
  637. checkbox
  638. ctrlID
  639. radiobutton
  640. ctrlID
  641. field
  642. ctrlID
  643. borderlessField
  644. ctrlID
  645. bitmap
  646. ctrlID
  647. singleSelectListbox
  648. ctrlID
  649. combobox
  650. ctrlID
  651. ctrlID
  652. select
  653. ctrlID
  654. groupbox
  655. ctrlID
  656. button
  657. ctrlID
  658. Button id 37 of Page id 1
  659. dlg_custom
  660. dlg_checkbox
  661. dlg_radiobutton
  662. dlg_field
  663. dlg_borderlessfield
  664. dlg_bitmap
  665. dlg_singleSelectlistbox
  666. dlg_combobox
  667. dlg_icon
  668. dlg_select
  669. dlg_groupBox
  670. dlg_button
  671. dlg_openDialog
  672. dlg_saveDialog
  673. dlg_properties
  674. dlg_character
  675. dlg_undo
  676. dlg_disableUndo
  677. dlg_duplicate
  678. dlg_disableDuplicate
  679. dlg_BringToFront
  680. dlg_DisableBringToFront
  681. dlg_SendToBack
  682. dlg_disableSendToBack
  683. dlg_showDialog
  684. dlg_disableshowDialog
  685. dlg_sendFarther
  686. dlg_DisableSendFarther
  687. dlg_bringCloser
  688. dlg_disableBringCloser
  689. dlg_saveDialogas
  690. wwwwwwwwww
  691. wwusww
  692. wwwwwwwwww
  693. wCawp
  694. wCTwp
  695. wmawp
  696. wngwp
  697. wu wp
  698. wvewp
  699. whawp
  700. wwwwwwwwww
  701. wwwwwwwwww
  702. wwwwwwwwww
  703. wwwwwwwwww
  704. wwwwwwwwww
  705. wwwwwwwwwwftww
  706. wppwwwpp
  707. wpwpwpwp
  708. w %wpww
  709. witwpwwpwwp
  710. wpwpwpwp
  711. wngwppwwwpp
  712. wwwwwwwwww
  713. wwwwwwwwww
  714. wwwwwwwwww
  715. wwwwwwwwww
  716. wwwwwwwwww
  717. wwwwwwwwww
  718. wwwwx
  719. wwwpwwpwww
  720. wwwwwwwwww
  721. wwwwwwwwww
  722. wwwwwwwwww
  723. wwwwwwwwww
  724. wwwwwwwwww
  725. wwwwwwwwww
  726. wwwwwwwwww
  727. wwwwwwwwww
  728. wwwwwwwwww
  729. wwwwwwwwww
  730. wwwwwwwwww
  731. wwwwwwwwww
  732. wwwwwwwwww
  733. wwwwwwwwww
  734. wwwwwwwwww
  735. wwwqw
  736. wwwqq
  737. wwwww
  738. wwwwqwwwww
  739. wwwwwwwwww
  740. wwwwwwwwww
  741. wwwwwwwwww
  742. wwwwwwwwww
  743. wwwwwwwwww
  744. wwwwwwwwww
  745. wwwwwwwwww
  746. wwwwwwwwww
  747. wwwwwwwwww
  748. wwwwwwwwww
  749. wwwwwwwwww
  750. wwwwwwwwww
  751. wwwwwwwwww
  752. wwwwwwwwww
  753. wwwwwwwwww
  754. wwwwwwwwww
  755. wwwwwwwwww
  756. wwwtDDGwwwftwwtDDDDGww
  757. wwDDDDDDww
  758. DGwSOwtDDO
  759. DDGwHOwDDDO
  760. wDDDO
  761. wDDDO
  762. wDDDO
  763. DDDwIPwDDDO
  764. DwDDD
  765. wDDDDDDDDwADwtDDO
  766. wwtDO
  767. DGwwG
  768. wwwtDDGwwwPTwwwwwwwwww
  769. wwwwwwwwww
  770. wwwwwwwwwwe wwwwwwwwwwchwwwwwp
  771. www ywwwww
  772. www swwwww
  773. wwwt wwp
  774. wwwww
  775. wwwww
  776. wwwwww
  777. wwwwww
  778. wwwwwwwwww
  779. wwwwwwwwww
  780. wwwwwwwwww
  781. uswpwwwwwww
  782. wpwwwwwww
  783. Ewpwwwwwww
  784. wpwwwwwww
  785. wpwwwwwww
  786. Cawpwwwwwww
  787. wpwwwwwww
  788. wpwwwwwww
  789. wpwwwwwww
  790. CTwpwwwwwww
  791. mawpwwwwwww
  792. ngwpwwwwwww
  793. u wpwwwwwww
  794. vewpw
  795. wwwwwwwwww
  796. wwwwwwwwww
  797. wwwwwwwwww
  798. wwwwwwwwww
  799. wwwwwwwwwwftwwwwwwwwww
  800. wwwwwx
  801. wwwwwx
  802. wwwwwwwwww
  803. wwwwwwwwww
  804. wwwwwwwwww0
  805. wwwwwwwwww
  806. UUUUUUUUUU
  807. UUUUUUUUUU
  808. UUUUUUUUUU
  809. UUUUUUUUUU
  810. UUUUUUUUUU
  811. UUUUUUUP
  812. UUUUU
  813. UUUUUP
  814. UUUUUUUUUU
  815. UUUUUUUUUU
  816. wwwwwwwwww
  817. wwwwwwwwww
  818. wwwwwwwwww
  819. wwwwwwwwww
  820. wwwwwwwwww
  821. wwwwwwwwww
  822. wwwwwwwwww
  823. UUUUUUUUUU
  824. UUUUUUUUUU
  825. UUUUUUUUUU
  826. UUUUUUUUUU
  827. UUUUUUUUUU
  828. UUUUUUUUUU
  829. UUUUUUUU
  830. PPUUUUUUUU
  831. PPUUUUUUUU
  832. UPUUUUUUUU
  833. UUUUUUUUUU
  834. ffffffffff
  835. ffffffffff
  836. ffffffffff
  837. ffffffffff
  838. ffffffffff
  839. ffffffffff
  840. ffff`
  841. ffffo
  842. fffff
  843. ffffffffff
  844. ffffffffff
  845. ffffffffff
  846. ffffffffff
  847. ffffffffff
  848. ffffffffff
  849. fofffo
  850. ffffffffff
  851. ffffffffff
  852. ffffffffff
  853. UUUUUUUUUU
  854. UUUUUUUUUU
  855. UUUUUUUUUU
  856. U^UUU^
  857. UUU_U
  858. UUUUUUUUUU
  859. UUUUUUUUUU
  860. UUUUUUUUUU
  861. UUUUUUUUUU
  862. UUUUUUUUUU
  863. UUUUUUUUUU
  864. UUUUUUUUUU
  865. UUUUUU
  866. UUUUUP
  867. UUUU^
  868. UUUUU
  869. UUUUU
  870. UUUUUUUUUU
  871. UUUUUUUUUU
  872. UUUUUUUUUU
  873. UUUUUUUUUU
  874. UUUUUUUUUU
  875. UUUUUU
  876. UUUUU^
  877. UUUU_
  878. UUUUU
  879. UUUUUU
  880. UUUUUUUUUU
  881. UUUUUUUUUU
  882. UUUUUUUUUU
  883. UUUUUUUUUU
  884. UUUUUUUUUU
  885. UUUUUU
  886. UUUUUU
  887. UUUUU
  888. UUUUU
  889. UUUUUP
  890. UUUUUU
  891. UUUUUUPUUU
  892. UUUUUUUUUU
  893. UUUUUUUUUU
  894. UUUUUUUUUU
  895. UUUUUUUUUU
  896. UUUUUU
  897. UUUUU
  898. UUUUU
  899. UUUUU
  900. UUUUU^
  901. UUUUUU
  902. UUUUUU^UUU
  903. UUUUUUUUUU
  904. UUUUUUUUUU
  905. UUUUUUUUUU
  906. UUUUUUUUUU
  907. UUUUUUUUUU
  908. UUUUUUP
  909. UUUUUU
  910. UUUUUP
  911. UUUUUP
  912. UUUUU
  913. UUUUUU
  914. UUUUUU
  915. UUUUUUUUUU
  916. UUUUUUUUUU
  917. UUUUUUUUUU
  918. UUUUUUUUUU
  919. UUUUUUU
  920. UUUUUU^
  921. UUUUUU
  922. UUUUU^
  923. UUUUU
  924. UUUUUU
  925. UUUUUU
  926. UUUUUUUUUU
  927. wwwwwwwwww
  928. wwwwwww
  929. pwwwp
  930. wwpwwwp
  931. wwwwwww
  932. wwwwwwwwww
  933. wwwwwwwwww
  934. wwwwwww
  935. xwwwx
  936. wwxwwwx
  937. wxxxwwx
  938. wwwwwww
  939. wwwwww
  940. wwwwwwwwww
  941. UUUUUUUUUU
  942. UUUUUUUUUU
  943. UUUUUUUUUU
  944. UUUUUUUUUU
  945. UUUUUUP
  946. UUUUUU
  947. UUUUUU
  948. UUUUUU
  949. UUUUUUUUUU
  950. UUUUUUUUUU
  951. UUUUUUUUUU
  952. UUUUUUUUUU
  953. UUUUUUU
  954. UUUUUU^
  955. UUUUUU
  956. UUUUUUUUUU
  957. UUUUUUUUUU
  958. UUUUUUUUUU
  959. UUUUUUUUUU
  960. UUUUUUUUUU
  961. UUUUUU
  962. UUUUUU
  963. UUUUU
  964. UUPUU
  965. UUUUP
  966. UUUUU
  967. UUUUUUUUUU
  968. UUUUUUUUUU
  969. UUUUUUUUUU
  970. UUUUUUUUUU
  971. UUUUUU
  972. UUUUU
  973. UUUUU
  974. UUUU^
  975. UUUUU
  976. UUUUUUUUUU
  977. wwwwwwwwww
  978. wwwwwwwwww
  979. wwwwwwwwww
  980. wwwwwwwwww
  981. wwwwwwwwww?Fwwx
  982. wwwwp
  983. ToolPalette
  984. ToolBar
  985. toolbar
  986. openDialog
  987. ctrlID
  988. wsgroup
  989. Open a dialog Template
  990. helpText
  991. saveDialog
  992. yhelpText
  993. saveDialogAs
  994. dlg_saveDialogAs
  995. saveDialog
  996. dlg_saveDialog
  997. Save the dialog under a new name
  998. Save the dialog
  999. toggleState
  1000. notifyBefore toggleState isControl
  1001. "saveDialogAs"
  1002. onormalGraphic 
  1003. bitmap "dlg_saveDialogAs"
  1004. ohelpText 
  1005. "Save the dialog under a 
  1006. ctrlID
  1007. Save the dialog
  1008. helpText
  1009. properties
  1010. ctrlID
  1011. Edit the properties of the selected control
  1012. helpText
  1013. character
  1014. ctrlID
  1015. Set the font for the dialog box
  1016. helpText
  1017. ctrlID
  1018. Undo/Redo last action
  1019. helpText
  1020. ItemSelected
  1021. duplicate
  1022. buttonDoubleClick
  1023. buttonClick
  1024. ctrlID
  1025. Duplicate the selected control
  1026. helpText
  1027. bringToFront
  1028. yhelpText
  1029. dlg_BringToFront
  1030. dlg_disableBringToFront
  1031. bringCloser
  1032. dlg_bringCloser
  1033. Bring the selection closer
  1034. dlg_disablebringCloser
  1035. Bring the selection to the front
  1036. bringToFront
  1037. toggleState
  1038. notifyBefore toggleState isControl
  1039. onormalGraphic 
  1040. bitmap "dlg_bringCloser"
  1041. odisabledGraphic 
  1042. ,disablebringCloser"
  1043. ohelpText 
  1044. "Bring the 
  1045. closer"
  1046. BringToFront"
  1047. disableBringToFront"
  1048. afront"
  1049. ctrlID
  1050. Bring the selection to the front
  1051. helpText
  1052. sendToBack
  1053. dlg_sendFarther
  1054. dlg_disableSendFarther
  1055. yhelpText
  1056. sendToBack
  1057. dlg_sendToBack
  1058. dlg_disableSendToBack
  1059. Send the selection farther
  1060. Send the selection to the back
  1061. sendFarther
  1062. toggleState
  1063. notifyBefore toggleState isControl
  1064. onormalGraphic 
  1065. bitmap "dlg_sendFarther"
  1066. odisabledGraphic 
  1067. ,disableSendFarther"
  1068. ohelpText 
  1069. farther"
  1070. |ToBack"
  1071. disableSendToBack"
  1072. ctrlID
  1073. Send the selection to the back
  1074. helpText
  1075. showDialog
  1076. ctrlID
  1077. Preview the dialog
  1078. helpText
  1079. Position
  1080. controlPosition
  1081. controlPosition 
  1082. value
  1083. Position of selected control in sialog units
  1084. helpText
  1085. 25,2523380952381,115.2
  1086. TBKDialogCommand
  1087. TBKDialogInit
  1088. oldBar
  1089. ,msgTxt
  1090. ToolBar
  1091. statusBar
  1092. friend
  1093. TBKDialogCommand
  1094. TBKDialogDestroy
  1095. TBKDialogInit hDlg, hWndFocus
  1096.     translateWindowMessage 
  1097.         on 0x0203 
  1098. TBKDialogCommand 
  1099. bCtrlID, hWndCtrl, msgNumber, ControlName
  1100. ( = 0
  1101. + bitAND 2) <> 0
  1102. "ToolBar"
  1103. StatusBar
  1104.             oldBar = 
  1105. statusBar
  1106. msgTxt 
  1107. ofriend)
  1108. TBKDialogDestroy 
  1109. field id 53
  1110. friend
  1111. Position:
  1112. controlSize
  1113. controlSize 
  1114. value
  1115. Size of selected control in sialog units
  1116. helpText
  1117. 208 x 14546153846153858.4615384615385
  1118.                                         * * * Dialog Editor version 3.0 enhancements by Jeffrey Ayars * * *
  1119. msgTxt
  1120. Size:::::
  1121. toggleState
  1122. ToolBar
  1123. To save your dialog box template:
  1124.     choose save... or save as ... from the file menu
  1125. To use your dialog box in a book:
  1126.     choose Assign Template to book... from the file menu
  1127. To edit a dialog you have assigned to a book:
  1128.     choose open... from the file menu
  1129.     choose the book from the dialog
  1130.     choose the dialog box from the listbox
  1131. To edit a saved dialog box template:
  1132.     choose open... from the file menu
  1133.     change the filter to .dia and choose the file
  1134. To edit a dialog box from a converted 1.5 book:
  1135.     copy the button with the DLGBOX and DLGINIT user 
  1136.     properties onto the clipboard
  1137.     paste the button into the editor
  1138. To resize the dialog box:
  1139.     hold down the CONTROL key and resize the editor window
  1140. Dialog
  1141. Dlg_MyAppIcon
  1142. wp{31
  1143. ffffffff
  1144. ffffffff
  1145. wwwwwwwp
  1146. wwwwwwwp
  1147. DDDDDD@
  1148. DDDDDDDD@
  1149. DDDDD
  1150. DDDD@
  1151. DDDDD
  1152. DDDD@
  1153. DDDDDD
  1154. DDDDD
  1155. DDDDDD
  1156. DDDDD
  1157. DDDDDD
  1158. DDDDD
  1159. DDDDDD
  1160. DDDDD@
  1161. DDDDDD
  1162. DDDDD@
  1163. DDDDDD
  1164. DDDDD@
  1165. DDDDDD
  1166. DDDDD@
  1167. DDDDDD
  1168. DDDDD@
  1169. DDDDDD
  1170. DDDDD@
  1171. DDDDDD
  1172. DDDDD@
  1173. DDDDO
  1174. DDDDD@
  1175. DDDDO
  1176. DDDDD
  1177. DDDDDDDDDDDDDD
  1178. DDDDDDDDDDDDDD
  1179. DDDDD
  1180. DDDDD@
  1181. DDDDO
  1182. DDDD@
  1183. --This handler initializes the editor.
  1184. It links 
  1185. DLLs used 
  1186. +ToolBar, Dialog, 
  1187. ToolPalette viewers, 
  1188. Ftranslates 
  1189. emessages 
  1190. enterApplication
  1191. 4OBJECT s_dialogWindow
  1192. 4WORD s_CurrentCursor
  1193. sysRuntime
  1194.  requires 
  1195. authoring version 
  1196. ToolBook."
  1197. = TRUE
  1198. p = 1
  1199. initDLLs
  1200. initEditor
  1201. following 
  1202. use a 
  1203. ,mode extension 
  1204. within 
  1205.     --For now, I don't want 
  1206. kloaded 
  1207. instance.
  1208. newDialog
  1209. focusWindow 
  1210. = FALSE
  1211. --Prevent nested 
  1212. , they have no meaning 
  1213.  templates
  1214. ) > 1 
  1215.             --
  1216. xallow 
  1217. --Only 
  1218. be shown 
  1219. s_Browse 
  1220. 4LOGICAL 
  1221. --only 
  1222. rightClick access 
  1223. rightbuttonDown
  1224. --Display 
  1225. user 
  1226. choose 
  1227. font 
  1228. 4s_DialogTemplate
  1229.     oldSelection = 
  1230. currentPage 
  1231. --KLUDGE
  1232. enabled 
  1233. sysOpenWindows 
  1234.     newFont = ChooseFontDlg(
  1235. &", 0,0,0,
  1236. 7", "forceExists,noGDI,noVector,screen")
  1237. --END 
  1238. contents
  1239. dlg_WinHelp(windowHandle 
  1240. .hlp",257,"
  1241.  INITIALIZTION/RESOTRATION HANDLERS 
  1242. states 
  1243. turn off sys3DInterface
  1244. 4STRING 
  1245. , s_dlgBaseUnits
  1246. t= "MS Sans Serif"
  1247. v= BOLD
  1248.     sysTransparent = 
  1249.     sysDrawDirect = 
  1250.     sysReaderRightClick = 
  1251.     sysUseWindowsColors = 
  1252.     sysShowMRUFiles = 
  1253.     objList = 
  1254. ) > 0
  1255. resName = "
  1256. normalGraphic 
  1257. invertGraphic 
  1258. bitmap 
  1259. ) > 0
  1260. disabledGraphic 
  1261. dlg_disable"&
  1262. --Link 
  1263. dll functions 
  1264.     --The DLL 
  1265. display dialogs created 
  1266.     linkDLL "tb30dlg.
  1267. getValue(
  1268. SetValue(
  1269. dialogCallback(
  1270. OpenFileDlg(
  1271. , INT)
  1272. SaveAsDlg(
  1273. chooseFontDlg(
  1274. T    etBitmapData(
  1275. s    etIconData(
  1276. } enableControl(
  1277.  setControlText(
  1278. getControlText(
  1279.     --See 
  1280. Microsoft 
  1281. SDK documentation 
  1282. more information.
  1283. dlg_CreateFontIndirect = 
  1284. (POINTER)
  1285. dlg_SelectObject = 
  1286.         DWORD dlg_getTextExtent = 
  1287. U dlg_DeleteObject = 
  1288. kernel
  1289. WGlobalHandle = 
  1290. pGlobalAlloc = 
  1291.  dlg_GlobalLock = 
  1292. GlobalUnlock = 
  1293. GlobalFree = 
  1294. DC = getDC(
  1295. ReleaseDC = 
  1296.         INT dlg_DestroyIcon = 
  1297. SendMessage = 
  1298.  handlers 
  1299. --sent 
  1300. closing down 
  1301. tell 
  1302. shut 
  1303. s_dirty 
  1304. been made 
  1305. xsaved
  1306. checkSave
  1307. s_Dirty
  1308. defaultPage 
  1309. f"&Yes" 
  1310. "&No"
  1311. saveDialog
  1312. --Alias 
  1313. help 
  1314. --Toggles 
  1315. translated 
  1316. --are 
  1317. has no 
  1318. scripts 
  1319. , untranslating 
  1320. re-activates 
  1321. click 
  1322. explore 
  1323. architecture.
  1324. browse Browsestate
  1325.         untranslateAllWindowMessages 
  1326. clientHandle 
  1327. "Toolbar"
  1328. initViewer 
  1329. )     = 
  1330. --Shows 
  1331. necessary 
  1332. clears 
  1333. controls 
  1334. xisOpen 
  1335. clearDialog
  1336. prompts 
  1337. a .DIA file that should be opened
  1338. "tbkdlg.dll".
  1339. decides 
  1340. operation, 
  1341. provides 
  1342. error checking.
  1343. Ctrl-A (ANSI 1) 
  1344. vvalue
  1345. specified .
  1346. ^s_InitialValues 
  1347. --remaining portion 
  1348. Fsends buildFrame 
  1349. --buildItem 
  1350. , whose corresponding 
  1351. rebuild 
  1352. OpenDialog
  1353. s_currentFile
  1354. tempList, templateName, 
  1355. , retVal
  1356. Z (*.DIA),*.
  1357.  (*.TBK),*.
  1358. ,SysBook (*.SBK),*.
  1359. ", 2)
  1360. upperCase(
  1361.     --If a 
  1362. 8was selected 
  1363. Flook 
  1364. there 
  1365. property 
  1366. isObject("BOOK" && QUOTE & 
  1367.         propList = 
  1368. currProp
  1369.             len = 
  1370. % = "box"
  1371. initProp = 
  1372. r) & CRLF 
  1373.         --If 
  1374. some 
  1375.             --
  1376.  = LoadTemplateInit 
  1377.  = setValue(
  1378. , "listbox 
  1379. (LoadTemplateBOX 
  1380. dialogName 
  1381. len-3 
  1382. targetBook 
  1383. newCaption = "
  1384.  - " & 
  1385.  && "
  1386. " && 
  1387. dialogTemplate = 
  1388. 8" && 
  1389. initialValues = 
  1390.  && "
  1391. 8" && 
  1392.  were found 
  1393.         --If 
  1394. -- I 
  1395. separate 
  1396. empty."
  1397.         sysErrorNumber = 0
  1398.  - " & 
  1399. [them 
  1400. wants 
  1401. be cleared
  1402. checkClear
  1403.     --Build 
  1404.  values
  1405. buildItems 
  1406. B"showDialog" 
  1407. ) > 0)
  1408. ...".
  1409. --specifies a valid 
  1410. writen.
  1411.  = saveAsDlg("
  1412.              "", "
  1413.  *.DIA", 1)
  1414. SaveDIA
  1415. %...".
  1416. saveDialogAs
  1417.              "", "
  1418.      <> 
  1419. calls 
  1420. buildDialogXXX 
  1421.  "drawing".
  1422. These
  1423. Fwritten 
  1424.      <> 
  1425. buildDialogHeader 
  1426. buildDialogItems 
  1427. o(1) 
  1428.  strings
  1429.  - " & 
  1430. s invoked each 
  1431. }-clicks on a 
  1432. selects 
  1433. "Properties..." 
  1434. It will
  1435. appropriate 
  1436. %determined 
  1437. currently
  1438. }clicked on.
  1439. x hWnd, Msg, wKeyFlags, xClientPos, yClientPos
  1440. ZARRAY 
  1441. ctrlProperties[5]
  1442. ,targetObj
  1443. y --Menu 
  1444.  --Double 
  1445.         -- 
  1446.  key 
  1447. pressed 
  1448. doubleclick 
  1449.  > 1 
  1450.  = 0 
  1451.  = 0 ) 
  1452. objectFromPoint(ClientToPageUnits(
  1453. controlProperties 
  1454.     --Check 
  1455.  type 
  1456. 1] = "BUTTON"
  1457.             --PushButtons 
  1458. different than Checkboxes 
  1459. RadioButtons
  1460.             --because you can 
  1461. ID_OK, ID_CANCEL, 
  1462.             --IdNumber 
  1463. "pushbutton"
  1464. = pushbuttonPropertiesBox 
  1465. #esInit 
  1466. --Translate 
  1467. )!controlID 
  1468. ctrlID = "&
  1469. oldID = "
  1470. ^" & 
  1471. !,"combobox 
  1472. & ButtonIDs 
  1473. 4] = 
  1474. ]" = 
  1475. Baccept", 
  1476. Bdiscard", 
  1477. 1#same 
  1478. " so 
  1479. done together
  1480. = checkRadioPropertiesBox 
  1481. #,"static ID", 
  1482. Bradio",
  1483. -$ = 
  1484. L$ = 
  1485. p$ = 
  1486. 4]) )
  1487. $,"iedit 
  1488.             --
  1489. $ box.
  1490. retValue 
  1491.             --
  1492. /&specific 
  1493. 2] = 1
  1494. removeButtonID("
  1495. 2] = 2
  1496. 2] = 
  1497. xisType(REAL, 
  1498. addButtonID(
  1499. O    4] = 
  1500.     4] = "
  1501.     4] = "
  1502.     4] =
  1503. 4] = 
  1504. 1] = "GROUPBOX"
  1505. ( = groupboxPropertiesInit 
  1506. (,"e235",
  1507. ),"e240",
  1508. ") = 
  1509. +),"s245",
  1510. R) = 
  1511. [),"i250",
  1512. z) = 
  1513.             --
  1514. ((groupBoxPropertiesBOX 
  1515. 1] = "EDIT"
  1516. * = editPropertiesInit 
  1517. *,"s240",
  1518. #+,"i245",
  1519. B+ = 
  1520. b+ = 
  1521. k+,"e250",
  1522. +,"b200",(fieldType 
  1523.  = WordWrap))
  1524. +,"b205",
  1525. +,"b210",
  1526. ,,"b220",
  1527. &,,"b215",
  1528. @, = 
  1529. BPassword", 
  1530. j, = 
  1531. s,,"b225",
  1532. ,,"b255",
  1533. ,,"b260",
  1534. ,,"b265",
  1535. !- = 
  1536. J- = 
  1537. ,(editPropertiesBOX 
  1538. SingleLineWrap
  1539. 4] = 
  1540. K    , "
  1541. 4] = 
  1542. i    , "
  1543. 4] = 
  1544. 4] = 
  1545. 4] = 
  1546. 4] = 
  1547. 1] = "STATIC"
  1548. / = staticPropertiesInit 
  1549. 50 = 
  1550. b0 = 
  1551. %1 = 
  1552. O1 = 
  1553. y1 = 
  1554. 1,"b270",
  1555. <1(staticPropertiesBOX 
  1556. 1] = "LISTBOX"
  1557. 3 = listboxPropertiesInit 
  1558. =4 = 
  1559. ^4 = 
  1560. y4 = 
  1561. Bsingle",
  1562. 4,"b280",
  1563. 4,"b275",
  1564. V4(listboxPropertiesBOX 
  1565. 4] = 
  1566. 4] = 
  1567. 4] = 
  1568. 4] = 
  1569. 1] = "COMBOBOX"
  1570. p6 = comboboxPropertiesInit 
  1571. 07 = 
  1572. dropDownLength",lineCount 
  1573. d7 = 
  1574. ",DropDownItems 
  1575. ",sortItems 
  1576. ",scrollable 
  1577. Beditable",Editable 
  1578. Y7(comboboxPropertiesBOX 
  1579. dropDownItems 
  1580. 1] = "ICON"
  1581. 9 = iconPropertiesInit 
  1582. 22", 
  1583. Layer",
  1584. !: = 
  1585. ]: = 
  1586. resourceName", 
  1587.             --uses 
  1588. :chooseResource 
  1589. N:, iconPropertiesBOX 
  1590. newIcon 
  1591. 1] = "BITMAP"
  1592. U< = BitmapPropertiesInit 
  1593. x< = 
  1594. ,= = 
  1595. x5" && 
  1596. c= = 
  1597.             --
  1598. =, BitmapPropertiesBOX 
  1599. newBmp 
  1600. newBMP 
  1601. 4 Place Holder"
  1602. <!1] = "CUSTOM"
  1603. k? = CustomPropertiesInit 
  1604. '@ = 
  1605. D@ = 
  1606. className", 
  1607. h@ = 
  1608. style", 
  1609. k"4])    
  1610. ?(CustomPropertiesBOX 
  1611. 8#3] = 
  1612. R# = 
  1613. k#4] = 
  1614.         --If 
  1615. = NULL
  1616. A = dialogPropertiesInit 
  1617. &B = 
  1618. EB = 
  1619. xpos",
  1620. hB = 
  1621. ypos",
  1622. (dialogPropertiesBOX 
  1623.     --If 
  1624. {wasn't 
  1625. 1$array
  1626. 8% <> 
  1627. selectionChanged 
  1628. B = 1
  1629. Cremoves 
  1630. 2IDString 
  1631. available 
  1632. --IDs.
  1633. cover 
  1634. #; makes 
  1635. easier 
  1636. read.
  1637. obuttonIDs
  1638. Dadds 
  1639. textlineCount(
  1640. &strokes 
  1641. also called 
  1642. It just resets 
  1643. EDialogFrame 
  1644. WMkeyUp a, b, 
  1645. controlState(
  1646. b <> 0
  1647. It handles 
  1648. F'nudge' behavior 
  1649. --arrow 
  1650. F unit 
  1651. Iinstead 
  1652. --pixel 
  1653. hanges 
  1654. Fboarder 
  1655. resizing 
  1656. G buttons.
  1657. WMkeyDown a, b, 
  1658. , c, d
  1659. "ThickFrame"
  1660.  )<= keyDownArrow
  1661. lockScreen 
  1662. DlgUnitsToPageUnits(1,1)
  1663. dx = 
  1664. dy = 
  1665. H-dx, 0
  1666. H0, -dy
  1667. Hdx, 0
  1668. H0, dy
  1669.             --Make 
  1670. Halt 
  1671. dlg_sendMessage(
  1672. H", b, key, c bitOR (d bitShiftLeft 16))
  1673. b <> 0
  1674. "Assign 
  1675. 8..."
  1676. FsetScript
  1677. CscriptMessage, templateScript, cmdString
  1678. @I = 4
  1679.     --If I 
  1680. 8yet, 
  1681. (where 
  1682. openFileDlg("
  1683. F...", \
  1684.             "*.tbk", ".", "
  1685. I (*.
  1686. E8 *.TBK, 
  1687. F8 *.SBK", 1) 
  1688. r<> -1
  1689. J = 1
  1690.  without changing 
  1691.  ;would 
  1692. 8doesn't 
  1693.  yet.
  1694. 114", 
  1695.         bFound = 
  1696.         resList = resourceList(
  1697. )) > 0 
  1698. currentIcon
  1699.     --If 
  1700. p, I 
  1701.     --names 
  1702. ("You must give 
  1703. Please specify a 
  1704. pbelow."
  1705.     --strip 
  1706. spaces, 
  1707. cannot 
  1708. ~(" ", 
  1709. ~(" ", 
  1710. verifyDialogName(
  1711. M = 1
  1712.     --If I am going 
  1713.  = normalScript 
  1714. ~("_DLGNAME_", 
  1715. ) > 65535)
  1716.  = ".
  1717. There 
  1718. xenough room 
  1719. 8"&& 
  1720. append the"&&\
  1721. Bplaced on 
  1722. Oclipboard"
  1723.  = " 
  1724. x:&&\
  1725. Badded 
  1726. O,"&&\
  1727.     --Add 
  1728. L;"&\
  1729. initialization 
  1730. 8"&& \
  1731.  &"."
  1732. P = 1
  1733. 8,, msg
  1734. NisTemplate, isViewer
  1735. _,= "
  1736. i = 1 
  1737. "1234567890"
  1738. begin 
  1739. fa letter."
  1740. "!@#$%^&*()-,./?><;':[]{}\|=+`~"& SPACE & TAB & 
  1741. H-= "
  1742. msg = "
  1743. I'"& 
  1744. <& "' 
  1745. contain 
  1746. t&"!@#$%^&*()-,./?><;':[]{}\|=+`~"& 
  1747. t?&"a 
  1748. "Unable 
  1749. already a 
  1750. 8" && 
  1751. 0@&" <> 
  1752. 8"&& 
  1753. 8" &&\
  1754. targetbook 
  1755. & "."
  1756. 8" &&\
  1757. & "."
  1758. 8" &&\
  1759. & "."
  1760. 4ontinue 
  1761. Uxisting 
  1762. 7 be overwritten " 
  1763. 8 be 
  1764. <8 be deleted 
  1765. e2"&\
  1766. 8 be 
  1767. "but no 
  1768. 8 be 
  1769. f"&Continue" 
  1770. "&Rename" 
  1771. "&Abort"
  1772. = "rename"
  1773. ("Enter 
  1774. buildViewer
  1775. V = 4
  1776. ...", \
  1777.             "*.
  1778. V (*.
  1779. ?E *.
  1780. >E *.
  1781. r<> -1
  1782. W = 1
  1783. p, I 
  1784. X = 1
  1785. ~(" ", 
  1786. ~(" ", 
  1787. iYcorrect 
  1788. userProperty
  1789. Y = 1
  1790.  could 
  1791. Wchanged 
  1792.  = ViewerScript 
  1793. ) > 65535)
  1794.  = ".
  1795. 8"&& 
  1796. iE&&"
  1797.  = " 
  1798. [,"&&\
  1799.     newDlgPage = copyObject(
  1800. d[", 
  1801. clientSize 
  1802. newDlgpage
  1803. skipNavigation 
  1804. fU) > 0
  1805. currentObject
  1806. >1] = "
  1807.     ?4] = 
  1808. !?4] = 
  1809. integerOnlyScript 
  1810.  = "PUSHBUTTON"
  1811. ?4] = 
  1812. trueAcceptScript 
  1813. falseCancelScript 
  1814.     newDlgViewer = 
  1815. n]", 
  1816. autosize 
  1817. defaultPosition 
  1818. " && 
  1819. H&& "
  1820. 8" &&\
  1821.  & "."
  1822. ^ = 1
  1823. _displays 
  1824. ^ About 
  1825. ^..."
  1826. picked.
  1827. aboutdialog
  1828. e, aboutBOX 
  1829.         aboutinit 
  1830. dialogHelp
  1831. %modal
  1832.         close 
  1833. _preview 
  1834. ShowDialog
  1835. @Z = menuItemChecked("Preview3D" 
  1836. _ = 4
  1837. _ = 1
  1838. 4aasks 
  1839. --action occurs.
  1840. "&No" 
  1841. a = 4
  1842. Ba = 1
  1843. D on 
  1844. --(Other 
  1845. TNOT 
  1846. %well.
  1847. xPos 
  1848. yPos 
  1849. )c") 
  1850. 425, 300
  1851. 4b - <Untitled>"
  1852.  UTILITY FUNCTIONS 
  1853. mH two 
  1854. forget 
  1855.  keeping 
  1856. global memory 
  1857. Callocate.
  1858. getWinPointer pBytes
  1859. dlg_GlobalAlloc(66, 
  1860. -- 66 = (moveable + zeroinit)
  1861. "Memory Allocation failed.
  1862. Operation Aborted."
  1863. freeWinPointer pPointerToGlobalMemory
  1864. AdhMem
  1865. dlg_GlobalHandle(
  1866. bitAnd 0x0000FFFF
  1867. ^eselector.
  1868. dlg_GlobalUnLock(
  1869. Toccured.
  1870. dlg_GlobalFree(
  1871. --Convert 
  1872. :e units 
  1873. pixels
  1874. dlgUnitsToPixels x, y
  1875. ZnewX, newY
  1876.     baseUnits = 
  1877.     --width 
  1878. ] = ((x * 
  1879. _) / 4)
  1880.     --Height 
  1881. fheight 
  1882.  = ((y * 
  1883. ) / 8)
  1884. dlgUnitsToPageUnits x, y
  1885. pageUnits 
  1886. -per 
  1887. gx direction
  1888.  = ((x * 
  1889. sysPageUnitsPerPixel) / 4) 
  1890.  = ((y * 
  1891. xel) / 8)
  1892. PixelsToDlgUnits x, y
  1893. 4 times 
  1894.  = ((x / 
  1895. ) * 4)
  1896.  = ((y / 
  1897. ) * 8)
  1898. pageUnitsToDlgUnits x, y
  1899. divided 
  1900.  = ((x * 4) / (
  1901.  = ((y * 8) / (
  1902. --Acutally calucate 
  1903. YfontName 
  1904. --point 
  1905. E$depends on 
  1906. 410pt Bold, 
  1907. =kAPI 
  1908. P getDialogBaseUnits() gives 
  1909. other fonts, 
  1910. be calculated.
  1911. component 
  1912. hbeing
  1913. always 
  1914. widths, I 
  1915. %c a logical 
  1916. slntire alphabet (
  1917. I cache 
  1918. d gets 
  1919. 'a lot (everytime 
  1920. H], a couple 
  1921. , etc..)
  1922. a comma seperated 
  1923. , fontPtSize
  1924. ZlExtent, baseWidth, baseHeight, pLogFont, hFont, hPreviousFont, hDC
  1925.     --If we 
  1926. p, recalculate 
  1927. , otherwise use
  1928. ncached 
  1929. }h <> 
  1930. h <> 
  1931.  kstructure
  1932.         --fill 
  1933. 1(18, 
  1934. .(8, 
  1935. negative 
  1936. ocell 
  1937.         --multiplying 
  1938. inch 
  1939. points 
  1940. physical 
  1941.         --1440 
  1942. .(0, 
  1943.  * ((1440/
  1944. l) / 72)) )
  1945.         --Now I 
  1946.         hDC = dlg_getDC(sysClientHandle)
  1947. caluclate 
  1948. pavarage 
  1949. ,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 52)
  1950.         --0
  1951.  masks 
  1952. rqhigh 
  1953.  = TRUNCATE((
  1954. ) / 52)
  1955.         --16 
  1956. bits 
  1957.  bitShiftRight 16)
  1958. clean Up
  1959. f(hDC, 
  1960. dlg_ReleaseDC(
  1961. $l = 
  1962. }rcallback 
  1963. TBKDialogInit hDlg, hWndFocus
  1964. TBKDialogCommand 
  1965. XCtrlID, hWndCtrl, msgNumber, ControlName 
  1966.  = 0 
  1967. 7 = 1
  1968.             --
  1969.  = 0 
  1970. controlName = "
  1971. N9...", \
  1972. .s (*.
  1973. setBitmapData(
  1974. ", GDIHandle(
  1975.  = 0 
  1976. ;...", \
  1977. t (*.
  1978. ec *.
  1979. dc *.
  1980. T<"")
  1981. setIconData(
  1982. Dialog
  1983. T<"")
  1984. setIconData(
  1985. Dialog
  1986. ttonIDs
  1987. System
  1988. System
  1989. Fo@_}
  1990. MS Sans Serif
  1991. Arial
  1992. staticpropertiesinit
  1993. aboutinit
  1994. comboboxpropertiesinit
  1995. icon id 100
  1996. about
  1997. ,G2687,Options
  1998. EDIT Name,E235,
  1999. iedit Layer,i245,
  2000. iedit DropDownLength,i248,
  2001. EDIT Items,E250,
  2002. BUTTON sort,B270,TRUE
  2003. BUTTON scroll,B18,FALSE
  2004. BUTTON editable,B119,FALSE
  2005. ,B1,TRUE
  2006. ,B2,FALSE
  2007. ,S252,Layer
  2008. ,S254,Control ID:
  2009. ,S251,Name
  2010. ,S255,Combobox Items
  2011. ,S253,Dropdown Length
  2012. STATIC ID,S240,ID
  2013. ,G2667,Style
  2014. ,S253,Layer
  2015. ,S254,Control ID:
  2016. ,S252,Name
  2017. ,S251,Listbox Items
  2018. STATIC ID,S240,ID
  2019. EDIT Name,E235,
  2020. iedit Layer,i245,
  2021. EDIT Items,E250,
  2022. BUTTON single,B3392,FALSE
  2023. ,B275,FALSE
  2024. ,B280,FALSE
  2025. ,B270,FALSE
  2026. ,B1,TRUE
  2027. ,B2,FALSE
  2028. listboxpropertiesinit
  2029. ,G4848,Justification
  2030. ,S253,Layer
  2031. ,S254,Control ID:
  2032. ,S252,Name
  2033. ,S6115,Initial Text
  2034. ,S240,ID
  2035. ,E235,
  2036. ,i245,
  2037. ,B255,FALSE
  2038. ,B265,FALSE
  2039. ,B260,FALSE
  2040. ,E250,
  2041. ,B205,FALSE
  2042. ,B210,FALSE
  2043. ,B215,FALSE
  2044. BUTTON password,B2814,FALSE
  2045. ,B220,FALSE
  2046. ,B225,FALSE
  2047. ,B200,FALSE
  2048. ,B1,TRUE
  2049. ,B2,FALSE
  2050. editpropertiesinit
  2051. ,G4828,Justification
  2052. ,S252,Layer
  2053. ,S253,Control ID
  2054. ,S251,Name
  2055. ,S254,Static Text
  2056. ,S240,ID
  2057. ,E235,
  2058. ,i245,
  2059. ,B255,FALSE
  2060. ,B260,FALSE
  2061. ,B265,FALSE
  2062. ,E250,
  2063. ,B270,FALSE
  2064. ,B1,TRUE
  2065. ,B2,FALSE
  2066. iconpropertiesinit
  2067. bitmapPropertiesInit
  2068. LoadTemplateBOX
  2069. ,S3151,Name
  2070. ,S3154,Y Position
  2071. ,S3155,X Position
  2072. ,S2987,Caption
  2073. EDIT Name,E3152,
  2074. EDIT caption,E2988,
  2075. iedit xpos,i3156,
  2076. iedit ypos,i3157,
  2077. ,B1,TRUE
  2078. ,B2,FALSE
  2079. dialogpropertiesinit
  2080. falseCancelScript
  2081. integerScript
  2082.     N.r-"
  2083. edit name,e235,
  2084. edit caption,e240,
  2085. iedit layer,i250,
  2086. ,b1,TRUE
  2087. ,b2,FALSE
  2088. ,s253,Layer
  2089. ,s252,Control ID:
  2090. ,s254,Caption
  2091. static ID,s245,ID 
  2092. ,s255,Name
  2093. groupboxpropertiesinit
  2094. ,G2544,Icon
  2095. ,S2532,Name 
  2096. ,S2533,Control ID
  2097. ,S2534,Layer
  2098. STATIC ID,S2542,
  2099. ICON Current Icon,h2547,icon "default"
  2100. ,S2949,Icon Name 
  2101. EDIT Name,E2540,
  2102. iedit Layer,i2541,
  2103. EDIT resourceName,E2950,
  2104. ,B1,TRUE
  2105. ,B2,FALSE
  2106. BUTTON Choose Icon,B2543,FALSE
  2107. PushButtonPropertiesINIT
  2108. CheckRadioPropertiesBOX
  2109. CheckRadioPropertiesINIT
  2110. ,G2544,Bitmap
  2111. ,S2532,Name 
  2112. ,S2533,Control ID
  2113. ,S2534,Layer
  2114. STATIC ID,S2542,
  2115. BITMAP Current Bitmap,p2553,
  2116. EDIT Name,E2540,
  2117. iedit Layer,i2541,
  2118. ,S2964,Bitmap Name 
  2119. EDIT resourceName,E2965,
  2120. ,B1,TRUE
  2121. ,B2,FALSE
  2122. BUTTON Choose Bitmap,B2543,FALSE
  2123. ,S2240,Name
  2124. ,S2241,Layer
  2125. ,S2242,Control ID
  2126. STATIC ID,S2246,32789
  2127. ,S2247,Control Class
  2128. ,S2249,Control Text
  2129. ,S2278,Control Style
  2130. EDIT Name,E2243,
  2131. iedit Layer,i2636,
  2132. EDIT ClassName,E2248,
  2133. iedit Style,i2279,
  2134. EDIT Text,E2250,
  2135. BUTTON OK,B1,TRUE
  2136. BUTTON Cancel,B2,FALSE
  2137. customPropertiesInit
  2138. 524480,14,25,25,230,131,,,Pushbutton Properties,8,MS Sans Serif,,6,43,28,12,253,1342177280,130,Layer,0,,63,43,39,12,252,1342177280,130,Control ID:,0,,6,25,33,12,254,1342177280,130,Caption,0,,6,10,33,12,255,1342177280,130,Name,0,name,37,6,125,13,235,1350631552,129,,0,caption,37,24,125,13,240,1350631552,129,,0,layer,37,43,20,12,250,1350631552,129,,0,,6,57,129,43,4782,1342177287,128,Button Action,0,ControlID,103,43,60,44,3253,1350631746,133,,0,Accept,20,72,78,9,200,1342177289,128,&Accept changes,0,Discard,20,84,80,9,205,1342177289,128,Cance&l the changes,0,Default,6,103,74,12,230,1342242819,128,&Default Pushbutton,0,,176,6,50,14,1,1342242817,128,&OK,0,,176,23,50,14,2,1342242816,128,&Cancel,0
  2139. PushButtonPropertiesBOX
  2140. ,S253,Layer
  2141. ,S252,Control ID:
  2142. ,S254,Caption
  2143. ,S255,Name
  2144. EDIT name,E235,
  2145. EDIT caption,E240,
  2146. iedit layer,i250,
  2147. ,G4782,Button Action
  2148. COMBOBOX ControlID,C3253,
  2149. BUTTON Accept,B200,FALSE
  2150. BUTTON Discard,B205,FALSE
  2151. BUTTON Default,B230,FALSE
  2152. ,B1,TRUE
  2153. ,B2,FALSE
  2154. LoadTemplateINIT
  2155. comboboxpropertiesBOX
  2156. listboxpropertiesBOX
  2157. editpropertiesBOX
  2158. 524480,16,25,25,209,113,,,Checkbox/Radio button Properties,8,MS Sans Serif,,6,60,63,37,4786,1342177287,128,Button Style,0,,7,45,28,12,253,1342177280,130,Layer,0,,75,45,39,12,252,1342177280,130,Control ID:,0,,7,25,33,12,254,1342177280,130,Caption,0,ID,114,45,25,8,245,1342177280,130,ID ,0,,7,10,33,12,255,1342177280,130,Name,0,name,37,6,99,13,235,1350631552,129,,0,caption,37,24,99,13,240,1350631552,129,,0,layer,37,41,20,12,250,1350631552,129,,0,checkbox,13,72,49,9,180,1342308361,128,Check&box,0,radio,13,85,53,9,185,1342177289,128,&Radio button,0,,73,60,64,37,4782,1342308359,128,Default Value,0,true,78,72,41,9,200,1342308361,128,&True,0,false,78,85,40,9,205,1342177289,128,&False,0,,151,7,51,15,1,1342373889,128,&OK,0,,151,26,51,15,2,1342242816,128,&Cancel,0
  2159. ,G4786,Button Style
  2160. ,S253,Layer
  2161. ,S252,Control ID:
  2162. ,S254,Caption
  2163. STATIC ID,S245,ID 
  2164. ,S255,Name
  2165. EDIT name,E235,
  2166. EDIT caption,E240,
  2167. iedit layer,i250,
  2168. BUTTON checkbox,B180,FALSE
  2169. BUTTON radio,B185,FALSE
  2170. ,G4782,Default Value
  2171. BUTTON true,B200,FALSE
  2172. BUTTON false,B205,FALSE
  2173. ,B1,TRUE
  2174. ,B2,FALSE
  2175. 524480,4,25,25,164,148,,,Load Dialog Template,8,MS Sans Serif,,6,6,91,9,3169,1342177280,130,Text,0,templates,6,17,92,110,3170,1352728579,131,,0,OK,108,6,50,14,1,1342242817,128,&Open,0,Cancel,108,22,50,14,2,1342242816,128,&Cancel,0
  2176. ,S3169,Dialogs in book
  2177. LISTBOX templates,L3170,
  2178. BUTTON OK,B1,TRUE
  2179. BUTTON Cancel,B2,FALSE
  2180. staticpropertiesBOX
  2181. dialogpropertiesBOX
  2182. groupboxpropertiesBOX
  2183. iconpropertiesBOX
  2184. ID_OK
  2185.     alogName
  2186. about
  2187. ID_OK
  2188. 524480,16,25,25,241,153,,,Combobox Properties,8,Helv,,90,63,75,74,2687,1342177287,128,Options,0,Name,37,7,127,12,235,1350631552,129,,0,Layer,37,23,20,12,245,1350631552,129,,0,DropDownLength,71,42,27,12,248,1350631552,129,,0,Items,6,72,75,66,250,1352728708,129,,0,sort,103,82,53,12,270,1342242819,128,So&rt Items,0,scroll,103,99,53,12,18,1342242819,128,Scroll &Bar,0,editable,103,115,53,12,119,1342242819,128,&Editable,0,,183,6,52,15,1,1342242817,128,&OK,0,,183,24,52,15,2,1342242816,128,&Cancel,0,,5,26,27,12,252,1342177280,130,Layer,0,,70,26,42,12,254,1342177280,130,Control ID:,0,,5,9,24,12,251,1342177280,130,Name,0,,5,59,56,9,255,1342177280,130,Combobox Items,0,,5,45,62,12,253,1342177280,130,Dropdown Length,0,ID,112,26,36,8,240,1342177280,130,ID,0
  2189. 524480,15,25,25,241,153,,,Listbox Properties,8,Helv,,92.00,46.00,78.00,59.00,2667,1342177287,128,Style,0,,6.00,25.00,34.00,12.00,253,1342177280,130,Layer,0,,94.00,26.00,39.00,12.00,254,1342177280,130,Control ID:,0,,6.00,8.00,24.00,10.00,252,1342177280,130,Name,0,,6.00,41.00,45.00,9.00,251,1342177280,130,Listbox Items,0,ID,137.00,26.00,28.00,10.00,240,1342177280,130,ID,0,Name,45.00,6.00,125.00,13.00,235,1350631552,129,,0,Layer,45.00,23.00,27.00,13.00,245,1350631552,129,,0,Items,6.00,53.00,80.00,74.00,250,1352728708,129,,0,single,96.00,62.00,70.00,10.00,3392,1342177289,128,&Single Selection,0,,96.00,76.00,70.00,12.00,275,1342177289,128,&Multiple Selection,0,,96.00,90.00,70.00,12.00,280,1342177289,128,&Extend Selection,0,,106.00,116.00,51.00,12.00,270,1342242819,128,So&rt Items,0,,182.00,5.00,51.00,15.00,1,1342242817,128,OK,0,,182.00,22.00,51.00,15.00,2,1342242816,128,Cancel,0
  2190. 524480,15,25,25,198,142,,,Static Properties,8,Helv,,75.00,21.00,51.00,50.00,4828,1342177287,128,Justification,0,,7.00,30.00,34.00,12.00,252,1342177280,130,Layer,0,,7.00,49.00,36.00,10.00,253,1342177280,130,Control ID,0,,7.00,9.00,24.00,12.00,251,1342177280,130,Name,0,,7.00,65.00,55.00,9.00,254,1342177280,130,Static Text,0,,47.00,49.00,25.00,8.00,240,1342177280,130,ID,0,,45.00,8.00,82.00,12.00,235,1350631552,129,,0,,45.00,28.00,20.00,12.00,245,1350631552,129,,0,,83.00,30.00,34.00,12.00,255,1342308361,128,&Left,0,,83.00,42.00,34.00,12.00,260,1342177289,128,&Right,0,,83.00,54.00,34.00,12.00,265,1342177289,128,&Center,0,,7.00,76.00,119.00,29.00,250,1352859780,129,,0,,7.00,110.00,51.00,12.00,270,1342242819,128,&Border,0,,141.00,8.00,51.00,15.00,1,1342242817,128,OK,0,,141.00,25.00,51.00,15.00,2,1342242816,128,Cancel,0
  2191. bitmapPropertiesBOX
  2192. customPropertiesBOX
  2193. ID_OK
  2194. ID_OK
  2195. ID_OK
  2196. ID_OK
  2197. ID_OK
  2198. ID_OK
  2199. aboutBox
  2200. 524480,10,25,25,209,82,,,Dialog Frame,8,Helv,,9.00,8.00,36.00,8.00,3151,1342177280,130,Caption,0,,82.00,49.00,36.00,8.00,3154,1342177280,130,Y Position,0,,8.00,49.00,36.00,8.00,3155,1342177280,130,X Position,0,,9.00,26.00,36.00,8.00,2987,1342177280,130,Caption,0,Name,53.00,7.00,94.00,12.00,3152,1350631552,129,,0,caption,53.00,25.00,94.00,12.00,2988,1350631552,129,,0,xpos,52.00,47.00,18.00,12.00,3156,1350631424,129,,0,ypos,126.00,47.00,18.00,12.00,3157,1350631424,129,,0,,154.00,6.00,51.00,14.00,1,1342242817,128,&OK,0,,154.00,22.00,51.00,14.00,2,1342242816,128,&Cancel,0
  2201. 524480,10,25,25,124,114,,,Groupbox Control,8,Helv,name,46,6,74,12,235,1350631424,129,,0,caption,46,21,74,12,240,1350631552,129,,0,layer,46,36,20,12,250,1350631424,129,,0,,69,66,51,15,1,1342242816,128,OK,0,,69,84,51,15,2,1342242816,128,Cancel,0,,5,39,34,12,253,1342177280,130,Layer,0,,5,55,39,12,252,1342177280,130,Control ID:,0,,5,23,33,12,254,1342177280,130,Caption,0,ID,46,55,36,8,245,1342177280,130,ID ,0,,5,8,33,12,255,1342177280,130,Name,0
  2202. 524480,13,25,25,209,124,,,Icon Properties,8,MS Sans Serif,,59.00,57.00,45.00,48.00,2544,1342177287,128,Icon,0,,6.00,12.00,22.00,10.00,2532,1342177280,130,Layer,0,,73.00,29.00,37.00,9.00,2533,1342177280,130,Control ID:,0,,5.00,28.00,26.00,10.00,2534,1342177280,130,Layer,0,ID,111.00,28.00,22.00,10.00,2542,1342177280,130,Text,0,Current Icon,72.00,74.00,19.00,20.00,2547,1342177283,130, ,0,,5.00,45.00,38.00,10.00,2949,1342177280,130,Layer,0,Name,43.00,10.00,95.00,12.00,2540,1350631552,129,,0,Layer,43.00,26.00,22.00,12.00,2541,1350631552,129,,0,resourceName,43.00,42.00,95.00,12.00,2950,1350631552,129,,0,,151.00,7.00,51.00,15.00,1,1342242817,128,OK,0,,151.00,26.00,51.00,15.00,2,1342242816,128,Cancel,0,Choose Icon,151.00,53.00,51.00,15.00,2543,1342242816,128,Choose &Icon,0
  2203. 524480,13,25,25,209,142,,,Bitmap Properties,8,MS Sans Serif,,7.00,58.00,133.00,68.00,2544,1342177287,128,Bitmap,0,,7.00,12.00,22.00,10.00,2532,1342177280,130,Layer,0,,79.00,32.00,37.00,9.00,2533,1342177280,130,Control ID:,0,,7.00,32.00,26.00,10.00,2534,1342177280,130,Layer,0,ID,117.00,32.00,23.00,10.00,2542,1342177280,130,Text,0,Current Bitmap,28.00,72.00,96.00,50.00,2553,1342177280,TBKDLGBitmap,,0,Name,42.00,10.00,98.00,12.00,2540,1350631552,129,,0,Layer,42.00,30.00,23.00,12.00,2541,1350631552,129,,0,,6.00,49.00,46.00,10.00,2964,1342177280,130,Layer,0,resourceName,53.00,47.00,87.00,12.00,2965,1350631552,129,,0,,151.00,7.00,54.00,15.00,1,1342242817,128,OK,0,,151.00,26.00,54.00,15.00,2,1342242816,128,Cancel,0,Choose Bitmap,151.00,53.00,54.00,15.00,2543,1342242816,128,Choose &Bitmap,0
  2204. ID_OK
  2205. ID_OK
  2206. normalScript
  2207. viewerScript
  2208. to handle buttonClick
  2209.     hide this window
  2210. trueAcceptScript
  2211. to handle buttonClick
  2212.     close this window
  2213. 524480,14,25,25,241,153,,,Custom Control Properties,8,MS Sans Serif,,7.00,10.00,25.00,12.00,2240,1342177280,130,Text,0,,7.00,31.00,22.00,12.00,2241,1342177280,130,Text,0,,81.00,31.00,37.00,10.00,2242,1342177280,130,Text,0,ID,124.00,30.00,27.00,10.00,2246,1342177280,130,Text,0,,6.00,49.00,45.00,12.00,2247,1342177280,130,Text,0,,5.00,87.00,42.00,12.00,2249,1342177280,130,Text,0,,6.00,68.00,45.00,12.00,2278,1342177280,130,Text,0,Name,40.00,10.00,123.00,12.00,2243,1350631552,129,,0,Layer,40.00,29.00,29.00,12.00,2636,1350631552,129,,0,ClassName,55.00,47.00,107.00,14.00,2248,1350631552,129,,0,Style,55.00,66.00,107.00,14.00,2279,1350631552,129,,0,Text,55.00,86.00,107.00,50.00,2250,1352728580,129,,0,OK,179.00,10.00,54.00,14.00,1,1342242817,128,&OK,0,Cancel,179.00,28.00,54.00,14.00,2,1342242816,128,&Cancel,0
  2214. ID_OK
  2215. ID_OK
  2216. 524480,6,50,25,137,146,,,About Dialog,8,MS Sans Serif,,6,50,127,50,12,1342177287,128,,0,OK,49,115,40,14,1,1342242817,128,&OK,0,,7,9,18,20,6,1342177283,130, ,0,,9,60,120,34,8,1342177281,130,Text,0,,5,32,126,18,9,1342177281,130,Text,0,,33,14,100,12,10,1342177281,130,Text,0
  2217. ,G12,
  2218. BUTTON OK,B1,TRUE
  2219. ,h6,icon "Dlg_MyAppIcon"
  2220. ,S8,All of the dialogs used in this application were created with this application and use the TB30DLG.DLL.
  2221. ,S9,Copyright 
  2222.  1991-1994 Asymetrix Corporation.
  2223. ,S10,ToolBook Dialog Editor v 3.0
  2224. buttonIDs
  2225. ID_OK
  2226. ID_CANCEL
  2227.     linkDLL "tb30dlg.dll"
  2228.         string dialog(string, string)
  2229.         string setValue(string, string, string)
  2230.         string getValue(string, string)
  2231.     set init to _DLGNAME_Init of this book
  2232.     --set init to setValue(init,"","")  --DLL function
  2233.     set retValue to dialog(_DLGNAME_BOX of this book, init)
  2234.     --get getValue(retValue, "")  --DLL function
  2235.     unlinkDLL "TB30DLG.DLL"
  2236. to handle show_DLGNAME_
  2237.     open viewer _DLGNAME_
  2238.     --uncomment the following lines to do initialization
  2239.     --in viewer _DLGNAME_
  2240.     --    initialize objects before showing the viewer
  2241.     --end
  2242.     show viewer _DLGNAME_ as modal
  2243.     --if the viewer is still open then a true/Accept
  2244.     --button was pressed
  2245.     if isOpen of viewer _DLGNAME_
  2246.         --uncomment the following lines to retrieve
  2247.         --information from the dialog
  2248.         --in viewer _DLGNAME_
  2249.         --    get the data from the objects here
  2250.         --end
  2251.     --otherwise the dialog was canceled
  2252.     else
  2253.         --do anything here to clean up after a cancel
  2254. to handle keyChar key
  2255.     if ANSIToChar(key) is in "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890@_"
  2256.         set character (item 2 of caretLocation + 1) of my password to ANSIToChar(key)
  2257.         set character (item 2 of caretLocation + 1) of my text to "*"
  2258.         increment item 2 of caretLocation
  2259.     else
  2260.         forward
  2261. to handle show_DLGNAME_
  2262.     --Move linkDLL statement to enterApplication handler
  2263.     linkDLL "tb30dlg.dll"
  2264.         string dialog(string, string)
  2265.         string setValue(string, string, string)
  2266.         string getValue(string, string)
  2267.     set init to _DLGNAME_Init of this book
  2268.     --set init to setValue(init,"","")  --DLL function
  2269.     set retValue to dialog(_DLGNAME_BOX of this book, init)
  2270.     --get getValue(retValue, "")  --DLL function
  2271.     unlinkDLL "TB30DLG.DLL"
  2272. ToolPalette
  2273. ge id 2
  2274. groupboxScript
  2275. to handle sized
  2276.     set syssuspendmessages to true
  2277.     set item 4 of bounds of item 2 of my objects to item 2 of my bounds + 255
  2278.     set item 2 of bounds of item 1 of my objects to item 2 of my bounds + 60
  2279.     set sysSuspendMessages to false
  2280. selectedTool
  2281. select
  2282. lastRecTool
  2283. ToolBar
  2284. ToolBook Dialog Editor - <Untitled>
  2285. ge id 3
  2286. Dialog
  2287. Page "Dialog"
  2288. controlProperties
  2289. Dialog
  2290. ialog
  2291. Page "ToolPalette"
  2292. Page "ToolBar"
  2293. Page "Help"
  2294. ToolBar
  2295. &File
  2296. newDialog
  2297. &Open...    Ctrl+O
  2298. OpenDialog
  2299. &Save...    Ctrl+S
  2300. SaveDialog
  2301. Sa&ve As...
  2302. SaveDialogAs
  2303. &Assign Template to Book...
  2304. build
  2305. &Convert Template to Viewer...
  2306. buildViewer
  2307. E&xit    Alt+F4
  2308. &Edit
  2309. &Undo    Ctrl+Z
  2310. DlgUndo
  2311. Cu&t    Ctrl+X
  2312. CutControl
  2313. &Copy    Ctrl+C
  2314. CopyControl
  2315. &Paste    Ctrl+V
  2316. PasteControl
  2317. De&lete    Del
  2318. DeleteControl
  2319. Cl&ear Dialog
  2320. &Control
  2321. &Properties...    Shift+F6
  2322. ControlProperties
  2323. &FOOBAR    Ctrl+G
  2324. GroupControls
  2325. &Align Controls
  2326. AlignControls
  2327. &Left
  2328. AlignLeft
  2329. AlignTop
  2330. &Right
  2331. AlignRight
  2332. &Bottom
  2333. AlignBottom
  2334. &View
  2335. Preview
  2336. Previe&w Dialog    Ctrl+W
  2337. showDialog
  2338. 3&D in Preview
  2339. Preview3D
  2340. &Help
  2341. Contents    F1
  2342. Contents
  2343. &Quick Help...
  2344. dialogHelp
  2345. Edit Editor    F3
  2346. Browse
  2347. &About Dialog...
  2348. undo    Ctrl+Z
  2349. cut    Ctrl+X
  2350. copy    Ctrl+C
  2351. paste    Ctrl+V
  2352. clear    Del
  2353. command    Shift+F3
  2354. Save    Ctrl+S
  2355. SaveDialog
  2356. Open    Ctrl+O
  2357. OpenDialog
  2358. Properties    Shift+F6
  2359. Properties
  2360. Preview Dialog    Ctrl+W
  2361. ShowDialog
  2362. group    Ctrl+G
  2363. group
  2364. contents    F1
  2365. contents
  2366. edit editor    F3
  2367. Browse
  2368. --This handler sets the 
  2369. editor 
  2370. another
  2371. translate 
  2372. *windows messages I want 
  2373. openWindow
  2374. 4OBJECT s_dialogWindow
  2375. ZLOGICAL sls
  2376. = TRUE
  2377. parentHandle 
  2378. windowHandle 
  2379. "ToolBar"
  2380. "ToolPalette"
  2381. initViewer
  2382. ocurrentPage 
  2383. oclientSize
  2384. updates 
  2385. q buttons on entering 
  2386. enterWindow
  2387. "Toolbar"
  2388. enabled 
  2389. menuItemEnabled("
  2390. B"showDialog" 
  2391. ) > 0
  2392. selectionChanged 
  2393. makes sure 
  2394. user about saving 
  2395. --closing 
  2396. closeWindow
  2397. checkSave
  2398. clearDialog
  2399. translates 
  2400. 4s_frameWidth
  2401.  DIV 
  2402. sysPageUnitsPerPixel
  2403.     translateWindowMessage 
  2404. oclienthandle
  2405.         on 0x0020 
  2406. setCursor 
  2407.         on 0x00A4 
  2408.         on 0x0204 
  2409.         on 0x0203 
  2410.         on 0x0100 
  2411. WMkeyDown 
  2412.         on 0x0101 
  2413. WMkeyUp 
  2414.         on 0x0104 
  2415. WMKeyDown 
  2416. owindowhandle
  2417.         on 0
  2418. he cursor 
  2419. either 
  2420. ,mode arrow 
  2421. cross hairs
  2422. --depending on 
  2423. value 
  2424. sysTool.
  2425. It also 
  2426. has been toggled 
  2427. hWnd, msg, hWndmsg, hitTest, mouseMessage
  2428. 4s_CurrentCursor
  2429.   = 0x0200 
  2430.             --
  2431. correct custom 
  2432. B(LastRecTool 
  2433.             --
  2434. ToolBook tools, 
  2435. corrisponding 
  2436. B, radioButton, 
  2437. Y, borderlessField, 
  2438. , singleSelectListbox, combobox"
  2439. enables/disables 
  2440. menuItems 
  2441. --state 
  2442. much 
  2443. taken 
  2444. cstates 
  2445. rest 
  2446. --toolbar 
  2447. menuItemSelected menuName, menuAlias
  2448. _Browse
  2449. browse 
  2450. xs_Browse
  2451. --This handler sets the buttons 
  2452. ToolBar 
  2453. correct toggle state
  2454. translates 
  2455. emessages 
  2456. WM_SETCURSOR 
  2457. WM_NCRIGHTBUTTONDOWN
  2458. initViewer
  2459. toggleState (
  2460. ) = down) 
  2461.     translateWindowMessage 
  2462. oclienthandle
  2463.         on 0x00A4 
  2464.         on 0x0020 
  2465. setCursor 
  2466. owindowhandle
  2467.         on 0
  2468.         on 0x0204 
  2469. closes 
  2470. editor 
  2471. closeWindow
  2472. he cursor 
  2473. arrow 
  2474. ever 
  2475. hWnd, msg, hWndmsg, hitTest, mouseMessage
  2476. 4s_CurrentCursor
  2477.   = 0x0200 
  2478.  <> 4
  2479. keeps 
  2480. sync 
  2481. control key.
  2482. controlState isControl
  2483. 4LOGICAL s_controlState
  2484. enables/disables 
  2485. menuItems 
  2486. cdepending on the
  2487. much 
  2488. taken 
  2489. cstates 
  2490. rest 
  2491. --toolbar 
  2492. enterMenu menuName, menuAlias
  2493. 4OBJECT s_dialogWindow
  2494. 4undoFlag
  2495. 4logical s_Browse    
  2496. R = "
  2497. isOpen 
  2498. --Keep 
  2499. menuItemEnabled("
  2500. "dlgUndo"
  2501.  = "Redo"
  2502. setMenuItemName("
  2503. ,, "Re&
  2504. z"&TAB&"Ctrl+Z")
  2505. S, "&
  2506.  = "Cannot 
  2507. "CutControl"
  2508. Copy")
  2509. "CopyControl"
  2510. Paste")
  2511. "PasteControl"
  2512. "DeleteControl"
  2513. clearDialog")
  2514. "deleteControl"
  2515. ) = 1 
  2516. controlProperties 
  2517. ) > 1 
  2518. "ControlProperties"
  2519. ) > 1 
  2520. GroupControls", "&
  2521. ) = 1 
  2522. ) > 1
  2523. c"AlignControls" 
  2524.  = "File"
  2525. enabled 
  2526. B"ShowDialog"
  2527. "saveDialog"
  2528. "saveDialogAs"
  2529. "build"
  2530. "BuildViewer"
  2531. "buildViewer"
  2532.  = "view"
  2533. "PreviewDialog"
  2534.  = "help"
  2535. , "Edit Editor"&
  2536. Q, "Return 
  2537. appripriate 
  2538. cselections
  2539. menuItemSelected 
  2540.         focusWindow = 
  2541.  = "DlgUndo"
  2542.             --
  2543.  = "AlignLeft"
  2544. '     = "AlignTop"
  2545. Q     = "AlignRight"
  2546. }     = "Alignbottom"
  2547.      = "Preview3D"
  2548. xmenuItemChecked("
  2549. browse 
  2550. --This handler sets the 
  2551. ToolPalette 
  2552. editor 
  2553. --sizes 
  2554. translates 
  2555. IWM_SETCURSOR
  2556. emessage
  2557. openWindow
  2558. 4OBJECT s_dialogWindow
  2559. oparenthandle 
  2560. windowhandle 
  2561. oclientSize 
  2562. Z) - (
  2563. + 10), \
  2564. oselectedTool 
  2565.     translateWindowMessage 
  2566. oclienthandle
  2567.         on 0x0020 
  2568. setCursor 
  2569. he cursor 
  2570. arrow 
  2571. over 
  2572. NhWnd, msg, hWndmsg, hitTest, mouseMessage
  2573. 4s_CurrentCursor
  2574.  = 0x0200 
  2575.  <> 4
  2576. sysTool 
  2577. value, 
  2578. --non-ToolBook 
  2579. Fsends 
  2580. correct 
  2581. depressed.
  2582. gives 
  2583. spacebar
  2584. --toggle between 
  2585. Jbehavior 
  2586. "bitmap"
  2587. "icon"
  2588. "groupbox"
  2589. "custom"
  2590. olastRecTool 
  2591. returns 
  2592. Toolpalette.
  2593. invertedButton 
  2594. --This handler gets the 
  2595. {that 
  2596. Bwas let up over, checks 
  2597. --see 
  2598. a member 
  2599. , inverts 
  2600. uninverts 
  2601. --other inverted 
  2602. sends 
  2603. a click.
  2604. objectFromPoint(
  2605. isChild(
  2606. toggleInvert 
  2607. obuttonPressed
  2608. buttonClick 
  2609. saves 
  2610. clicked down on 
  2611. FALSE
  2612. toggleObject 
  2613.         LockScreen 
  2614. "ToolPalette" = TRUE
  2615. oinvertedButton 
  2616. ooldInvertedButton 
  2617. determins 
  2618. objectInQuestion a child (
  2619. --subgroup) specified 
  2620. parentInQuestion
  2621. --These handlers 
  2622. status bar help 
  2623. isOpen 
  2624. "ToolBar"
  2625. "Toolbar"
  2626. statusbar 
  2627. "Draws a"&&
  2628. saved states 
  2629. oldState userProperty
  2630. ZSTACK 
  2631. ToolBar 
  2632. ToolPalette 
  2633. OldState
  2634. lineEndsPalette 
  2635. Oldstate
  2636. buttonClick
  2637. 4OBJECT s_dialogWindow
  2638. isOpen 
  2639. focusWindow 
  2640. >= "Button"
  2641. toggleState (
  2642. ) = down)
  2643. menuItemSelected "
  2644. U", "dlgUndo" 
  2645. "Toolbar"
  2646. enabled 
  2647. B"showDialog" 
  2648. "ToolBar") 
  2649. ) > 0)
  2650. WMKeyDown 0, 0, 
  2651. WMKeyUp 0, 0, 
  2652. statusBar 
  2653. helpText 
  2654. 4OBJECT s_dialogWindow
  2655. lockScreen 
  2656.     sysSuspendMessages = 
  2657.         "dlgBox" 
  2658.         "dlgInit" 
  2659. buildFrame 
  2660. buildItems 
  2661. FALSE
  2662. --This handler builds the part 
  2663. s_DialogTemplate 
  2664. ^that has 
  2665.  box frame 
  2666. style.
  2667. buildDialogHeader
  2668.     --calculate 
  2669. , convertint 
  2670. clientSize 
  2671. pixels, 
  2672. Fcaluclating 
  2673. width 
  2674.     --because 
  2675.  includes 
  2676. Kbut 
  2677. sysPageUnitsPerPixel)
  2678.     frameWidth = 
  2679. pixelsToDlgUnits(
  2680.     cx = 
  2681.     cy = 
  2682. fontName 
  2683. ptSize are already 
  2684. they 
  2685. used elsewhere
  2686.     fontPtSize = 
  2687. = 524480 --DS_MODALFRAME + DS_SETFONT + WS_SYSMENU 
  2688. "," & 0 
  2689. "," & xPos 
  2690. "," & yPos 
  2691. "," & cx 
  2692. "," & cy 
  2693. "," & 
  2694. "," & 
  2695. "," & 
  2696. controls 
  2697. sets up 
  2698. initialValues
  2699. each 
  2700. , too.
  2701. buildDialogItems
  2702. , s_InitialValues
  2703. ZSTACK objectList, tempControls, 
  2704. ZARRAY STRING CtrlProperties[5]
  2705.     WS_VISIBLECHILD = 1342177280
  2706.     WS_TABSTOP = 65536
  2707.     WS_GROUP = 131072
  2708.     WS_BORDER =
  2709. 8388608
  2710.     ObjectList = 
  2711. currentPage 
  2712. )least one CurrentControl 
  2713. been defined, 
  2714. property
  2715. wsgroup 
  2716.     --Step through 
  2717. we find a 
  2718.  outside 
  2719. . Use 
  2720. hold 
  2721. without 
  2722. ToolBook
  2723. "controlProperties" 
  2724.             groupObjects = 
  2725. "," & 
  2726. preControl 
  2727. "," & 
  2728.     nitems = 
  2729.     --Maximum 
  2730. allowable
  2731. 1> 100
  2732. "Only 100 
  2733. lowed.
  2734. If you proceed,"&&\
  2735. above 
  2736. K101 will be ignored." 
  2737. f"&Continue" 
  2738. "Cancel"
  2739.     --Walk 
  2740. setup 
  2741.  strings.
  2742. currentControl
  2743.             ctrlProperties = 
  2744. pageUnitsToDlgUnits(
  2745.             xSize = 
  2746.             ySize = 
  2747. "BUTTON"
  2748. --Text 
  2749.  Caption
  2750. ctrlText = 
  2751. class = 128
  2752. ctrlStyle = 
  2753. begins 
  2754. ends a 
  2755. Fgive 
  2756. -- 9 
  2757. BS_RADIOBUTTON
  2758. -- 3 
  2759. BS_CHECKBOX
  2760. "pushbutton" 
  2761. -- 1 
  2762. WS_DEFPUSBUTTON
  2763. initValue = 
  2764. -- 0 
  2765. ES_LEFT
  2766. -- 1 
  2767. ES_CENTER
  2768. -- 2 
  2769. ES_RIGHT
  2770. fieldType 
  2771. WordWrap
  2772. -- 4 
  2773. ES_MULTILINE
  2774. -- 2097152 
  2775. WS_VSCROLL
  2776. H2097152
  2777. -- 1048576 
  2778. WS_HSCROLL
  2779. H1048576
  2780. -- 64 
  2781. ES_AUTOHSCROLL
  2782. -- 128 
  2783. ES_AUTOVSCROLL
  2784. -- 32 
  2785. ES_PASSWORD
  2786. [1] = "iedit"
  2787. "static"
  2788. "LISTBOX"
  2789. --LBS_notify
  2790. H2097152
  2791. [4] = 
  2792. --LBS_SORT
  2793. [4] = 
  2794. --LBS_MULTIPLESEL
  2795. [4] = 
  2796. --LBS_EXTENDSEL
  2797. H2048
  2798. "COMBOBOX"
  2799. + 64 + 2    -- 64 
  2800. CBS_AUTOHSCROLL
  2801. -- 2 
  2802. CBS_DROPDOWN
  2803. scrollable 
  2804. H2097152
  2805. sortItems 
  2806. --CBS_SORT
  2807. Editable 
  2808. * lineCount 
  2809. dropDownItems 
  2810. "GROUPBOX"
  2811.     [1] 
  2812. c"ICON"
  2813. H3 --Icon
  2814. normalGraphic 
  2815. c"BITMAP"
  2816.     "TBKDLGBitmap"
  2817. ) <> 0
  2818. ) - 2 
  2819. ) <> 0
  2820. ) - 2 
  2821. c"CUSTOM"
  2822. isType(REAL, 
  2823. bitOR 
  2824. addDialogItem (
  2825. [2], 
  2826. , 0, 
  2827. [1], 
  2828. extra 
  2829. ctrlName, ctrlID, 
  2830. , extraBytes, ctrlType, 
  2831. there 
  2832. specified, don't 
  2833. "," &
  2834. "," &
  2835. "," &
  2836. "," &
  2837. "," &
  2838. "," &
  2839. "," &
  2840. "," &
  2841. "," &
  2842. "," &
  2843.             --Bitmaps 
  2844. f"p" 
  2845. picture 
  2846. "b" was taken 
  2847.  & "," & "p" & 
  2848.  & "," & 
  2849. o(1) 
  2850. "," & "p" & 
  2851.  & "," & 
  2852. o(1) 
  2853.             --Icons 
  2854. f"h" 
  2855. always 
  2856.  & "," & "h" & 
  2857.  & "," & 
  2858. o(1) 
  2859. "," & "h" & 
  2860.  & "," & 
  2861. o(1) 
  2862.             --Custom 
  2863. f"u" 
  2864. userDefined 
  2865. Hcombobox
  2866.  & "," & "u" & 
  2867.  & "," & 
  2868. o(1) 
  2869. "," & "u" & 
  2870.  & "," & 
  2871. o(1) 
  2872.  & "," & 
  2873.  & "," & 
  2874. o(1) 
  2875. "," & 
  2876.  & "," & 
  2877. o(1) 
  2878. handy 
  2879. savvy users who want 
  2880. their own values, 
  2881. based on those 
  2882. debugging purposes 
  2883. being
  2884. --written.)
  2885. buildfromVar pdlgBox, pdlgInit
  2886.  representation 
  2887.  specifed 
  2888. --dialogTemplate 
  2889. (See 
  2890. "main"
  2891. see how 
  2892. converted 
  2893. called 
  2894. following handlers:
  2895. --    openDialog
  2896.  frameHeight, 
  2897. , xPosition, yPosition
  2898. eshowing 
  2899. xpos 
  2900. ypos 
  2901. dlgUnitsToPixels(
  2902. sizeToViewer 
  2903. 4groupItems, dontMakeGroup
  2904. ctrlProps, 
  2905. dx, dy, cx, cy, ctrlClass
  2906. ZDWORD 
  2907. controlDefStack
  2908. C     = 2
  2909. y = 5
  2910.         makeLastGroup = 
  2911.         inGroup = 
  2912. [groupitems
  2913. [off 
  2914. description 
  2915. leave just 
  2916.  information.
  2917.             --reset 
  2918.  array 
  2919.             fill 
  2920. bytes 
  2921. editor
  2922. ] = "
  2923. have 7 
  2924. ,!ctrlstyle
  2925. bitAnd 0x0000000F ) = 7
  2926. newObj = drawControl("
  2927. , dx, dy,cx,cy)
  2928. ] = "
  2929. --It 
  2930.  types
  2931. ~ol("
  2932. , dx, dy, cx, cy)
  2933. ] = "
  2934. ="ctrlsytle
  2935. ) = 9
  2936. ) = 3
  2937. a PUSHBUTTON
  2938. "DEFPUSHBUTTON
  2939. ) = 1)
  2940. ] = 1
  2941. removeButtonID("ID_OK")
  2942. ] = 2
  2943. +_CANCEL")
  2944. getValue(
  2945. K , "b" & 
  2946. ] = 129 
  2947. c"EDIT"
  2948. , dx, dy, cx, cy)
  2949. ] = "
  2950. --Has Vertical ScrollBar
  2951. ) >= 1 )
  2952. EHorizontal 
  2953. ) >= 1 )
  2954. --AutoHorizontal 
  2955. 80) >= 1 )
  2956. --AutoVertical 
  2957. 40) >= 1 )
  2958. --Password
  2959. 20) >= 1 ) 
  2960. --MulitLine
  2961. 4) >= 1 ) 
  2962. SingleLineWrap
  2963. integer only 
  2964. ", "i" & 
  2965. P#,"e" & 
  2966. allignment
  2967. 2) >= 1
  2968. 1) >= 1
  2969. "STATIC"
  2970. 3) = 3
  2971. , dx, dy, cx, cy)
  2972. ] = "
  2973. j$, "h" & 
  2974. targetBook 
  2975. 8"&"E&
  2976. , dx, dy, cx, cy)
  2977. ] = "
  2978. ) >= 1
  2979. 2) >= 1
  2980. 1) >= 1
  2981. %,"s" & 
  2982. ] = 131 
  2983. ] = "
  2984. l("listbox", dx, dy, cx, cy) 
  2985. ] = "
  2986. --assume single 
  2987. --ExtendSelect
  2988. 800) >= 1
  2989. --MulitSelect
  2990. 8) >= 1
  2991. --Sort
  2992. T    2) >= 1 )
  2993. `',"l" & 
  2994. ] = 133 
  2995. ] = "
  2996. , dx, dy, cx, cy) 
  2997. ] = "
  2998. ) >= 1 ) 
  2999. 256) >= 1 )
  3000. editable 
  3001. 1) >= 1 )
  3002. M(,"c" & 
  3003. ] = "
  3004. , dx, dy, cx, cy)
  3005. ] = "
  3006. (, "p" & 
  3007. ] = "
  3008. , dx, dy, cx, cy)
  3009. ] = "
  3010. p), "h" & 
  3011. , dx, dy, cx, cy)
  3012. ] = "
  3013.             toggle = 
  3014.             --Check 
  3015. beginning 
  3016. ) >= 1
  3017. !.         
  3018. makeGroup 
  3019.             -- If 
  3020. $.signifies 
  3021.             -- 
  3022. another 
  3023. &made 
  3024. i = 1 
  3025. frequently 
  3026. signify 
  3027. --so 
  3028. denoted 
  3029. unless 
  3030. x, y, 
  3031. )/, height
  3032. ZPOINT upperLeft, lowerRight
  3033.  = dlgUnitsToPageUnits(x, y)
  3034. s(x + 
  3035. /, y + 
  3036. "TEMP"
  3037. + 100, 
  3038. - 60 
  3039. - 150, 
  3040. + 195
  3041. label
  3042. groupboxScript 
  3043. "ToolPalette"
  3044. "singleSelect"
  3045. useWindowsColors 
  3046. .Place Holder"
  3047. RECTANGLE
  3048. WHITE
  3049. icon 
  3050. holder"
  3051. = NULL
  3052. "DrawItem"&&
  3053. &&"failed"
  3054. manage 
  3055. !4grouping 
  3056. tempSel 
  3057. ) < 2
  3058. WindowSized
  3059. 4OBJECT s_dialogWindow
  3060. "Toolbar" 
  3061. , = "dialogFrame" 
  3062. sizeToViewer 
  3063. currentPage 
  3064. selectionChanged 
  3065. --This handler keeps the status fields 
  3066. ToolBar 
  3067. -buttons on 
  3068.  enabled state 
  3069. --sets 
  3070. Ycurrently selected 
  3071. ZARRAY STRING ctrlProperties[5]
  3072. electedControl
  3073. .ControlName
  3074. isOpen 
  3075. duplicate, bring 
  3076. front, 
  3077. toolbar
  3078. "ItemSelected" 
  3079. a multiple 
  3080. selectedControl = 
  3081. will have a controlProperties userProperty 
  3082. pageUnitsToDlgUnits(
  3083. controlPosition 
  3084. controlSize 
  3085.  = "<Untitled>"
  3086. statusBar 
  3087. 1] && 
  3088. --disable 
  3089. FALSE
  3090. xPos 
  3091. , yPos 
  3092. --calculate 
  3093. Dialog 
  3094. --includes 
  3095. Kbut 
  3096. frame width.
  3097. clientSize 
  3098.  DIV 
  3099. sysPageUnitsPerPixel
  3100. frameWidth 
  3101. pixelsToDlgUnits(
  3102. dialogName 
  3103.  = "<
  3104. "DIALOG" && 
  3105. B"showDialog" 
  3106. ) > 0)
  3107. --controls 
  3108. %well 
  3109. %converts 
  3110. drawn 
  3111. custom, groupbox, bitmap,
  3112. icon 
  3113. correct 
  3114. array tells
  3115. editor functions 
  3116. create 
  3117.  templates.
  3118. Celements are:
  3119. [1] = 
  3120. Type        - internal 
  3121. [2] = 
  3122. ID            - 
  3123. {ID except 
  3124. pushButtons
  3125. [3] = 
  3126. Text        - 
  3127. [4] = 
  3128. Style bits    - values depend on 
  3129.  class
  3130. [5] = 
  3131. Class        - actual 
  3132. 4LOGICAL s_dirty
  3133. 4s_undoFlag
  3134.     --don't want 
  3135. zanything 
  3136. copying 
  3137.     --suspend 
  3138. 4messages so creating 
  3139. doesn't
  3140. more makes
  3141.     sysSuspendMessages = 
  3142. , we 
  3143. ><> "
  3144. useWindowsColors 
  3145. drawDirect 
  3146.             --If a 
  3147. gets 
  3148.  type
  3149. lockScreen 
  3150. so we can find 
  3151. "TEMP"
  3152.  place holder
  3153. selectedTool 
  3154. "ToolPalette" 
  3155. "Bitmap 
  3156. Place Holder"
  3157. excludeTab 
  3158.     1] = "BITMAP"
  3159. 2] = 
  3160.  = "TBKDLGBitmap"
  3161. newObj = 
  3162. "             
  3163. normalGraphic 
  3164. (32 * 
  3165. l),(32 * 
  3166. 1] = "ICON"
  3167. 2] = 
  3168. 3] = "comment"
  3169.  = "130"
  3170. a groupBox    
  3171. + 70, 
  3172. - 70 
  3173. - 150, 
  3174. + 195
  3175. label
  3176. "GROUP BOX"
  3177. groupboxScript 
  3178. 1] = "GROUPBOX"
  3179. 2] = 
  3180. 3] = 
  3181.  = "128"
  3182. "Custom 
  3183. 1] = "
  3184. ctrlproperties[2] = 
  3185. "radioButton"
  3186. 1] = "BUTTON"
  3187. 2] = 
  3188. 3] = 
  3189. --style 
  3190.  defPushButton, 
  3191. 4] = "
  3192.  = "128"
  3193. 1] = "
  3194. 2] = 
  3195. 3] = 
  3196. 4] = "
  3197.  = "128"
  3198. 1] = "
  3199. 2] = 
  3200. 3] = 
  3201. 4] = "
  3202.  = "128"
  3203. fieldType 
  3204. x"singleSelect"
  3205. 1] = "EDIT"
  3206. 2] = 
  3207. 3] = 
  3208.  vScroll, hScroll, auto 
  3209. Password, integerOnly
  3210. 4] = "
  3211.  = "129"
  3212. singleLineWrap
  3213. 1] = "STATIC"
  3214. 2] = 
  3215. 3] = 
  3216.  = "130"
  3217. 1] = "LISTBOX"
  3218. 2] = 
  3219. 3] = 
  3220. , extendSelect, multiselect, 
  3221. 4] = "
  3222.  = "131"
  3223. >= "combobox"
  3224. 1] = "COMBOBOX"
  3225. 2] = 
  3226. 3] = 
  3227.  = "133"
  3228.         --If 
  3229. >already has 
  3230. duplicated 
  3231. pasted 
  3232.         --we need 
  3233. update its ID 
  3234. 2] = 
  3235. ^that 
  3236. used 
  3237.     --on 
  3238. toolBar 
  3239. menuItemEnabled("
  3240.  = "Undo"
  3241.  = "Cannot 
  3242. preview 
  3243. ) > 0)
  3244.  sure 
  3245. each 
  3246. even 
  3247.  unit
  3248. moved
  3249. ystem 
  3250. moving 
  3251. another 
  3252.  per DialogUnit 
  3253. down 
  3254. nearest
  3255. DlgUnitsToPageUnits(1, 1)
  3256.     dx = 
  3257.     dy = 
  3258.     x = 
  3259.     y = 
  3260. (x / dx) * dx, 
  3261. (y / dy) * dy
  3262.     --on 
  3263. sized
  3264. hight, 
  3265. itself
  3266. (1, 1)
  3267.     dx = 
  3268.     dy = 
  3269.     x = 
  3270.     y = 
  3271. (x / dx) * dx
  3272. (x / dx) * dx, 
  3273. (y / dy) * dy
  3274.     --on 
  3275. updates 
  3276. delete 
  3277.     --Put 
  3278. was ID_OK 
  3279. ID_CANCEL
  3280. PUSHBUTTON
  3281. 2] = 1
  3282. addButtonID("
  3283. 2] = 2
  3284. removed 
  3285. Xthings
  3286.     --on 
  3287. --KLUDGE
  3288. --If 
  3289. shut 
  3290. gone so checking
  3291. cause 
  3292. Turn 
  3293. ES off 
  3294. --End 
  3295. ) > 0)
  3296. +*+9;
  3297. s_dialogWindow
  3298. initViewer
  3299. ToolPalette
  3300. ToolBar
  3301. openWindow
  3302. showDialog
  3303. Toolbar
  3304. ToolBar
  3305. enterWindow
  3306. clearDialog
  3307. checkSave
  3308. closeWindow
  3309. s_dialogWindow
  3310. s_frameWidth
  3311. WMkeyUp
  3312. WMKeyDown
  3313. setCursor
  3314. rightButtonDown
  3315. WMkeyDown
  3316. properties
  3317. initViewer
  3318. LastRecTool
  3319. rectangle
  3320. ToolPalette
  3321. setCursor
  3322. button, radioButton, checkbox, borderlessField, field, singleSelectListbox, combobox
  3323. s_CurrentCursor
  3324. setCursor
  3325. browse
  3326. s_Browse
  3327. Browse
  3328. menuItemSelected
  3329. toggleState
  3330. setCursor
  3331. rightButtonDown
  3332. initViewer
  3333. closeWindow
  3334. .&+    +E
  3335. setCursor
  3336. s_CurrentCursor
  3337. setCursor
  3338. toggleState
  3339. s_controlState
  3340. ToolBar
  3341. controlState
  3342. +*+Dr
  3343. dlgUndo
  3344. Paste
  3345. s_dialogWindow
  3346. Return to Editor
  3347. Browse
  3348. Re&do
  3349. group
  3350. BuildViewer
  3351. clear
  3352. DeleteControl
  3353.     undoFlag
  3354. saveDialogAs
  3355. clearDialog
  3356. CopyControl
  3357. Cannot Undo
  3358. PasteControl
  3359. controlProperties
  3360. AlignControls
  3361. ShowDialog
  3362. &Group
  3363. CutControl
  3364. s_Browse
  3365. saveDialog
  3366. &Undo
  3367. buildViewer
  3368. Un&group
  3369. Ctrl+G
  3370. deleteControl
  3371. Edit Editor
  3372. Ctrl+Z
  3373. PreviewDialog
  3374. control
  3375. Control
  3376. build
  3377. ControlProperties
  3378. GroupControls
  3379. enterMenu
  3380. +*+Dr
  3381. +*+Dr
  3382. +*+Dr
  3383. +*+Dr
  3384. +*+Dr
  3385. +*+Dr
  3386. +*+Dr
  3387. +*+Dr
  3388. +*+Dr
  3389. +*+Dr
  3390. +*+Dr
  3391. DlgUndo
  3392. s_dialogWindow
  3393. AlignRight
  3394. deleteControl
  3395.     undoFlag
  3396. CopyControl
  3397. AlignLeft
  3398. PasteControl
  3399. Alignbottom
  3400. CutControl
  3401. s_Browse
  3402. Browse
  3403. Preview3D
  3404. AlignTop
  3405. browse
  3406. ControlProperties
  3407. GroupControls
  3408. menuItemSelected
  3409. s_dialogWindow
  3410. select
  3411. setCursor
  3412. ToolPalette
  3413. selectedTool
  3414. openWindow
  3415. .&+    +E
  3416. setCursor
  3417. s_CurrentCursor
  3418. setCursor
  3419. groupbox
  3420. custom
  3421. lastRecTool
  3422. bitmap
  3423. ToolPalette
  3424. selectedTool
  3425. invertedButton
  3426. toolpalette
  3427. toolPalette
  3428. selectedTool
  3429. .isChild
  3430. ,toggleInvert
  3431. [ebuttonPressed
  3432. buttonUp
  3433. \ebuttonPressed
  3434. ,toggleInvert
  3435. buttonDown
  3436. .isChild
  3437. ,toggleInvert
  3438. buttonStillDown
  3439. invertedButton
  3440. oldInvertedButton
  3441. invertedButton
  3442. ToolPalette
  3443. toggleInvert
  3444. FALSE
  3445. group
  3446. isChild
  3447. ToolBar
  3448. Toolbar
  3449. Draws a
  3450. statusbar
  3451. mouseEnter
  3452. ToolBar
  3453. Toolbar
  3454. statusbar
  3455. mouseLeave
  3456. colorTray
  3457. lineEndsPalette
  3458. polygonPalette
  3459. linePalette
  3460. patternPalette
  3461. &noldState
  3462. ToolPalette
  3463. ToolBar
  3464. enterBackground
  3465. colorTray
  3466. lineEndsPalette
  3467. polygonPalette
  3468. linePalette
  3469. patternPalette
  3470. ToolPalette
  3471. ToolBar
  3472. %noldState
  3473. leaveBackground
  3474. +*+Dr
  3475. s_dialogWindow
  3476. toggleState
  3477. button
  3478. Button
  3479. buttonClick
  3480. dlgUndo
  3481. showDialog
  3482. Toolbar
  3483. ToolBar
  3484. +*+Dr
  3485. s_dialogWindow
  3486. WMKeyDown
  3487. keyDown
  3488. +*+Dr
  3489. s_dialogWindow
  3490. YWMKeyUp
  3491. keyUp
  3492. yhelpText
  3493. statusBar
  3494. mouseEnter
  3495. statusBar
  3496. mouseLeave
  3497. dlgBox
  3498. s_dialogWindow
  3499. button
  3500. dlgInit
  3501. 8dlgInit
  3502. dlgBox
  3503. buildItems
  3504. buildFrame
  3505. paste
  3506. .&,    #>
  3507. w,    #>
  3508. w,    #>
  3509. s_dialogWindow
  3510. fontName
  3511. pixelsToDlgUnits
  3512. s_DialogTemplate
  3513. fontPtSize
  3514. buildDialogHeader
  3515. .&+    +E
  3516. .&+    +E
  3517. ,!J    Y
  3518. +    ,    /
  3519. +    ,    /
  3520. +    ,    /
  3521. +    ,    /
  3522. +    ,    /
  3523. ,!J@Y
  3524. +    ,    /
  3525. +    ,    /
  3526. ,!J Y
  3527. +    ,    /
  3528. +    ,    /
  3529. +    ,    /
  3530. +    ,    /
  3531. Only 100 dialog controls are allowed.  If you proceed,
  3532. ypageUnitsToDlgUnits
  3533. CUSTOM
  3534. xSize
  3535. rectangle
  3536. &addDialogItem
  3537. group
  3538. groupObjects
  3539. iedit
  3540. ctrlStyle
  3541. center
  3542. ctrlText
  3543. FALSE
  3544. LISTBOX
  3545. Y%controlProperties
  3546. radiobutton
  3547. BUTTON
  3548. ySize
  3549. s_DialogTemplate
  3550. currentControl
  3551. Continue
  3552. Cancel
  3553. s_dialogWindow
  3554. ]wsgroup
  3555. COMBOBOX
  3556. checkbox
  3557. all controls above layer 101 will be ignored.
  3558. ]wsgroup
  3559. &Continue
  3560. WordWrap
  3561. right
  3562. BITMAP
  3563. controlProperties
  3564. TBKDLGBitmap
  3565. class
  3566. WS_VISIBLECHILD
  3567. pushbutton
  3568. static
  3569. initValue
  3570. s_InitialValues
  3571. GROUPBOX
  3572. buildDialogItems
  3573. 1,    #>
  3574. 1,    #>
  3575. CUSTOM
  3576. BITMAP
  3577. s_InitialValues
  3578. s_DialogTemplate
  3579. addDialogItem
  3580. .&+    +E
  3581. .&+    +E
  3582. buildItems
  3583. s_InitialValues
  3584. s_DialogTemplate
  3585. buildFrame
  3586. buildfromVar
  3587. +*+Dr
  3588. s_dialogWindow
  3589. dlgUnitsToPixels
  3590. buildFrame
  3591. ^Ba$9
  3592. +*+Dr
  3593. ,%H.%
  3594. .&,    "
  3595. +    ,    /
  3596. +    ,    #>
  3597. +    ,    /
  3598. +    ,    /
  3599. +    ,    /
  3600. +    ,    /
  3601. +    ,    /
  3602. +    ,    /
  3603. +    ,    /
  3604. +    ,    #>
  3605. +    ,    /
  3606. +    ,    #>
  3607. +    ,    /
  3608. .&,    "
  3609. +    ,    #>
  3610. w,    #>
  3611. +    ,    #>
  3612. +    ,    /
  3613. +    ,    /
  3614. +    ,    /
  3615. +    ,    /
  3616. +    ,    /
  3617. +    ,    /
  3618. +    ,    #>
  3619. +    ,    #>
  3620. +    ,    #>
  3621. w,    #>
  3622. +    ,    #>
  3623. w,    #>
  3624. kgetValue
  3625. s_dialogWindow
  3626. groupItems
  3627. removeButtonID
  3628. of book
  3629. Z%controlProperties
  3630. STATIC
  3631. scrollbar
  3632. dontMakeGroup
  3633. newObj
  3634. COMBOBOX
  3635. ID_OK
  3636. BITMAP
  3637. ID_CANCEL
  3638. makeGroup
  3639. TBKDLGBitmap
  3640. FALSE
  3641. CUSTOM
  3642. targetBook
  3643. drawControl
  3644. inGroup
  3645. makeLastGroup
  3646. toggle
  3647. radiobutton
  3648. BUTTON
  3649. LISTBOX
  3650. listbox
  3651. GROUPBOX
  3652. buildItems
  3653. +*+Dr
  3654. 1,!J<Y
  3655. 1,!JdY
  3656. DrawItem
  3657. s_dialogWindow
  3658. ydlgUnitsToPageUnits
  3659. CUSTOM
  3660. STATIC
  3661. COMBOBOX
  3662. Bitmap Control Place Holder
  3663. BITMAP
  3664. Custom control Place holder
  3665. ToolPalette
  3666. LISTBOX
  3667. GROUP BOX
  3668. failed
  3669. groupboxScript
  3670. GROUPBOX
  3671. drawControl
  3672. groupItems
  3673. dontMakeGroup
  3674. FALSE
  3675. tempSel
  3676. makeGroup
  3677. +*+Dr
  3678. s_dialogWindow
  3679. dialogFrame
  3680. Toolbar
  3681. WindowSized
  3682. +*+Dr
  3683. s_dialogWindow
  3684. ypageUnitsToDlgUnits
  3685. ItemSelected
  3686. dialogName
  3687. <Untitled>
  3688. position
  3689. controlSize
  3690. controlProperties
  3691. showDialog
  3692. ToolBar
  3693. Y%controlProperties
  3694. controlPosition
  3695. DIALOG
  3696. pixelsToDlgUnits
  3697. statusBar
  3698. selectionChanged
  3699. 1,!JFY
  3700. 1,!JFY
  3701. BUTTON
  3702. Custom Control Place Holder
  3703. STATIC
  3704. newObj
  3705. singleSelect
  3706. button
  3707. Bitmap Control Place Holder
  3708. TRUE,FALSE,FALSE,FALSE
  3709. rectangle
  3710. ToolPalette
  3711. Y%controlProperties
  3712. GROUP BOX
  3713. ToolBar
  3714. comment
  3715. LISTBOX
  3716. field
  3717. FALSE,
  3718. s_dialogWindow
  3719. Cannot Undo
  3720. checkbox
  3721. Z%controlProperties
  3722. FALSE,FALSE
  3723. radioButton
  3724. COMBOBOX
  3725. showDialog
  3726. BITMAP
  3727. s_dirty
  3728. groupBox
  3729. controlProperties
  3730. TBKDLGBitmap
  3731. Custom
  3732. Toolbar
  3733. combobox
  3734. bitmap
  3735. FALSE,FALSE,FALSE,FALSE,FALSE,FALSE
  3736.     s_undoFlag
  3737. groupboxScript
  3738. GROUPBOX
  3739. selectedTool
  3740. custom
  3741. Cannot Undo
  3742. s_dirty
  3743. Toolbar
  3744. yDlgUnitsToPageUnits
  3745.     s_undoFlag
  3746. moved
  3747. Cannot Undo
  3748. s_dirty
  3749. Toolbar
  3750. yDlgUnitsToPageUnits
  3751.     s_undoFlag
  3752. sized
  3753. Cannot Undo
  3754. PUSHBUTTON
  3755. ID_OK
  3756. ID_CANCEL
  3757. showDialog
  3758. Toolbar
  3759. s_dirty
  3760. Y%controlProperties
  3761. addButtonID
  3762. ToolBar
  3763.     s_undoFlag
  3764. destroy
  3765. ctrlID
  3766. Cannot Undo
  3767. PUSHBUTTON
  3768. ID_OK
  3769. ID_CANCEL
  3770. showDialog
  3771. Toolbar
  3772. s_dirty
  3773. Y%controlProperties
  3774. addButtonID
  3775. ToolBar
  3776.     s_undoFlag
  3777. destroy
  3778. S_RTFHOTWORDCREATION
  3779. HAS_RTFHOTWORDCREATION
  3780.      Rev 1.76   07 Apr 1993 15:15:24   brianm
  3781.     @%echo Clean the object files in the segment $(SEGMENT)
  3782. HAS_SEEKFILE
  3783. HAS_SEEKFILE
  3784.     If the file is specific to a project or a feature, please add it to 
  3785. DIR)\$(M    %endif
  3786. HAS_SNGLLIN_HZNTLSCRL
  3787. HAS_SNGLLIN_HZNTLSCRL
  3788.                MODULE    = <string>            name of module being built
  3789.         md $(PROJOBJDIR)\$(MODDIR)
  3790. HAS_STDLBSCROLL
  3791. HAS_STDLBSCROLL
  3792.   Fixed problem with command line being too long
  3793.  "" != ""
  3794. HAS_SUBSCRIPTS
  3795. HAS_SUBSCRIPTS
  3796.   prolog/epilog code is generated.
  3797.     %if ( (%dir($(PROJOBJDIR)\CDBH)))
  3798. HAS_SYSMETRICS
  3799. HAS_SYSMETRICS
  3800.     the appropriate    file list in the feature section below.
  3801. #    **Please NOTE!**
  3802. HAS_TBKDIRECTORY
  3803. HAS_TBKDIRECTORY
  3804.     %if ( (%dir($(PROJOBJDIR)\CDBH)))
  3805. 524480,21,25,25,247,166,,,Edit Properties,8,MS Sans Serif,,5.00,41.00,73.00,47.00,4848,1342177287,128,Justification,0,,6.00,24.00,34.00,12.00,253,1342177280,130,Layer,0,,95.00,24.00,38.00,12.00,254,1342177280,130,Control ID:,0,,6.00,7.00,24.00,12.00,252,1342177280,130,Name,0,,93.00,37.00,55.00,9.00,6115,1342177280,130,Initial Text,0,,137.00,24.00,25.00,8.00,240,1342177280,130,ID,0,,45.00,6.00,127.00,12.00,235,1350631552,129,,0,,45.00,23.00,20.00,12.00,245,1350631552,129,,0,,21.00,50.00,25.00,12.00,255,1342177289,128,&Left,0,,21.00,61.00,34.00,12.00,265,1342177289,128,&Center,0,,21.00,71.00,31.00,12.00,260,1342177289,128,&Right,0,,94.00,47.00,85.00,61.00,250,1352728708,129,,0,,6.00,100.00,75.00,10.00,205,1342242819,128,&Vertical Scrollbar,0,,6.00,112.00,76.00,10.00,210,1342242819,128,&Horizontal Scrollbar,0,,6.00,124.00,76.00,10.00,215,1342242819,128,&Auto vertical scroll,0,password,6.00,136.00,51.00,10.00,2814,1342242819,128,&Password,0,,98.00,113.00,74.00,10.00,220,1342242819,128,&No Word Wrap,0,,98.00,124.00,57.00,10.00,225,1342242819,128,&Integer Only,0,,98.00,136.00,51.00,10.00,200,1342242819,128,&Multiline,0,,189.00,6.00,51.00,15.00,1,1342242817,128,OK,0,,189.00,24.00,51.00,15.00,2,1342242816,128,Cancel,0
  3806.